PEP 234: Iterators

Aahz Maruch aahz at
Sat May 5 13:12:46 EDT 2001

In article <nfiI6.83$Yu6.16482 at>,
Fredrik Lundh <fredrik at> 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

Androgynous poly kinky vanilla queer het Pythonista
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 mailing list