[Python-Dev] PEP 201, zip() builtin
Peter Schneider-Kamp
nowonder at nowonder.de
Mon Jul 31 01:27:27 EDT 2000
Tim Peters wrote:
>
> Both syntaxes already have well-defined meanings in Python (*try* them!), so
> we can't change what they mean without breaking existing code. Guido would
> *prefer* to do this via syntax instead of new functions, but in more than a
> year nobody has been able to dream up a reasonable syntax that's
> backward-compatible. That's not for lack of trying.
I thought the problem was that all the syntaxes implied cross-
product rather than lock-step iteration. I can't remember what
the problem for the semicolon syntax should have been
(besides the semicolon normally only being used between stmts):
for x,y; z in list_xy; list_z:
print "coordinates: x,y,z"
sorry-to-bring-that-up-again---I-like-zip()-a-lot-ly yr's
Peter
--
Peter Schneider-Kamp ++47-7388-7331
Herman Krags veg 51-11 mailto:peter at schneider-kamp.de
N-7050 Trondheim http://schneider-kamp.de
More information about the Python-list
mailing list