[Python-3000] Equality of range objects

Guido van Rossum guido at python.org
Wed Apr 9 18:31:39 CEST 2008


On Tue, Apr 8, 2008 at 11:45 PM, Anand Balachandran Pillai
<abpillai at gmail.com> wrote:
> Still this seems like a bad thing to break backward compatibility with.

That's not a very strong argument for Py3k.

>  Hopefully, this will be well documented at 3.0 release. Currently
>  that "whats new" page does not mention anything about the range
>  type and how it breaks backward compatibility.
>
>  The NEWS page for 3.0 a4 does say this however.
>
>  "range() now returns an iterator rather than a list.  Floats are not allowed.
>   xrange() is no longer defined."
>
>  I guess more information can be added here to actually specify
>  that range() returns not just any iterator, but an iterator which is a new
>  type and how it is different.

Please submit a doc patch!

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list