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/025027.html below:

[Python-Dev] xrange identity crisis

[Python-Dev] xrange identity crisis [Python-Dev] xrange identity crisisOren Tirosh oren-py-d@hishome.net
Wed, 5 Jun 2002 12:21:23 +0300
On Tue, Jun 04, 2002 at 04:57:58PM -0400, Raymond Hettinger wrote:
> Being immutable, xrange had the advantage that it could serve as its own
> iterator and did not require the extra code needed for list iterators and
> dict iterators.

In its current form, xrange is no longer immutable. It has state information
and calling the next() method of an xrange object modifies it.

I guess the difference between us is that you are concerned with what works 
while I am irrationally obsessed with semantics :-)

	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