A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-June/025978.html below:

[Python-Dev] Xrange and Slices

[Python-Dev] Xrange and Slices [Python-Dev] Xrange and SlicesOren Tirosh oren-py-d@hishome.net
Thu, 27 Jun 2002 03:06:03 -0400
On Wed, Jun 26, 2002 at 02:37:17AM -0400, Raymond Hettinger wrote:
> Wild idea of the day:
> Merge the code for xrange() into slice().
> So that old code will work, make the word 'xrange' a synonym for 'slice'

It looks possible, but it will hurt the performance of xrange.  Internally, 
xrange uses C longs while slice uses python objects with all the associated 
overhead.  

	Oren




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4