PEP 234: Iterators
Just van Rossum
just at letterror.com
Thu May 3 19:22:25 EDT 2001
Roman Suzi wrote:
> >Well, yes. The whole point of this exercise is that xrange() will be
> >essentially deprecated in 2.2. There's no more need to create any new
>
> 8-[ xrange is about to be excluded from Python? Can't it just be
> an alternative name of the iterator, doing same thing?
Could be done, for most usages, but it's not completely compatible: the xrange
object supports random access, whereas an iterator does not.
Just
More information about the Python-list
mailing list