PEP 276 Simple Iterator for ints

Magnus Lie Hetland mlh at
Tue Nov 13 23:42:00 CET 2001

<James_Althoff at> wrote in message
news:mailman.1005687619.18024.python-list at
> All,
> Below is the first draft of PEP 276 "Simple Iterator for ints".
> (Available at

Heh -- cool :)

I'd love to drop range() or xrange() from my for loops... (I would
like some pseudocode-like literal like 0..n myself, but I see
the [0:n] PEP has been rejected, so... :|)

The x, = 1 thingy is pretty ugly, though... Let's just hope that
iterators don't become indexable... 5[2] is just too weird ;)

Magnus Lie Hetland                           The Anygui Project                 

More information about the Python-list mailing list