PEP 276 Simple Iterator for ints (fwd)
Jeff Shannon
jeff at ccvcorp.com
Mon Dec 10 13:40:08 EST 2001
Paul Jackson wrote:
> Oh, and that brings up another fine point. Whereas I can
> say:
>
> for (a,b) in ((1,10), (2,11)):
>
> I suspect you wouldn't want me to be able to say:
>
> for (1,10) <= (a,b) <= (2,11):
>
> Or perhaps you would ?? This starts to get complicated again.
I think that this doesn't apply. The proposed x < i < z notation
replaces range(), whereas your example doesn't use range (it
explicitly provides its own sequence).
(I still strongly dislike the proposed notation, though.... Maybe
it's a style thing--I'd usually much rather have a clear function call
than clever operator tricks.)
Jeff Shannon
Technician/Programmer
Credit International
More information about the Python-list
mailing list