itertools.izip brokeness

Paul Rubin http
Tue Jan 3 06:36:43 EST 2006


bonono at gmail.com writes:
> map(None,[1,2,3],[4,5]) gives [(1,4),(2,5),(3,None)]

I didn't know that until checking the docs just now.  Oh man, what a
hack!  I always thought Python should have a built-in identity
function for situations like that.  I guess it does the above instead.
Thanks.  Jeez ;-)



More information about the Python-list mailing list