PEP 276 Simple Iterator for ints (fwd)
Gareth McCaughan
Gareth.McCaughan at pobox.com
Wed Nov 28 05:08:52 EST 2001
Rainer Deyke wrote:
[Greg Ewing proposed:]
> > > > for 0 <= i < 5:
> > > > ...
...
> +666 if it understands arbitrary expressions:
>
> for 0 <= i < 5 and i % 0 == 0: # possible
> pass
[etc]
I wondered about suggesting it should understand
for 0 <= i < j < 10:
...
which would be useful to me about once a month,
but I think that would be entirely excessive. :-)
--
Gareth McCaughan Gareth.McCaughan at pobox.com
.sig under construc
More information about the Python-list
mailing list