PEP 234: Iterators
aahz at panix.com
Sat May 5 13:12:46 EDT 2001
In article <nfiI6.83$Yu6.16482 at newsc.telia.net>,
Fredrik Lundh <fredrik at effbot.org> wrote:
>Aahz Maruch 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 x*() functions.
>what should you use instead of xrange?
range() -- at least, I'm assuming that range() will return an iterator
in the appropriate contexts.
--- Aahz <*> (Copyright 2001 by aahz at pobox.com)
Androgynous poly kinky vanilla queer het Pythonista http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
I don't have enough time for all the cool people I know, let alone all
the cool people *they* know. --Aahz
More information about the Python-list