Dot-comma, anyone? (Re: zip or marry etc)

Cliff Crawford cjc26 at nospam.cornell.edu
Fri Jul 21 18:07:25 EDT 2000


* Greg Ewing <see at my.signature> menulis:
| 
| For one thing, it would make it easier to implement
| parallel iteration efficiently. When I write
| 
|   for x,y in zip(a,b):
| 
| I'm just trying to express the way the iteration is
| to be carried out. I don't really mean that I want the
| zip of the two lists to be computed first and then
| iterated over.

Maybe we could specify that zip() is lazy, like in Haskell, or else
define another function called xzip() (parallel to xrange()) which is
the lazy version of zip().


-- 
cliff crawford    -><-    http://www.people.cornell.edu/pages/cjc26/
                          Synaesthesia now!            icq 68165166



More information about the Python-list mailing list