itertools.izip brokeness

Paul Rubin http
Fri Jan 6 02:56:33 EST 2006


Paul Rubin <http://phr.cx@NOSPAM.invalid> writes:
>            # quit if only discardables are left
>            dropwhile(lambda i,t: (not isinstance(i, Discardable)) and len(t)),
>               izip(t, iterables)).next()

Ehh, that should say dropwhile(lambda (t,i): ...)  to use tuple
unpacking and get the args in the right order.  I'm sleepy and forgot
what I was doing.  Of course I'm still not sure it's right.



More information about the Python-list mailing list