[Python-Dev] Lockstep iteration - eureka! (original) (raw)
Ka-Ping Yee ping@lfw.org
Wed, 9 Aug 2000 02:37:07 -0700 (PDT)
- Previous message: [Python-Dev] Lockstep iteration - eureka!
- Next message: [Python-Dev] Lockstep iteration - eureka!
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, 9 Aug 2000, Greg Ewing wrote:
for (x in a, y in b): ...
It looks nice, but i'm pretty sure it won't fly. (x in a, y in b) is a perfectly valid expression. For compatibility the parser must also accept
for (x, y) in list_of_pairs:
and since the thing after the open-paren can be arbitrarily long, how is the parser to know whether the lockstep form has been invoked?
Besides, i think Guido has Pronounced quite firmly on zip().
I would much rather petition now to get indices() and irange() into the built-ins... please pretty please?
-- ?!ng
"All models are wrong; some models are useful." -- George Box
- Previous message: [Python-Dev] Lockstep iteration - eureka!
- Next message: [Python-Dev] Lockstep iteration - eureka!
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]