Paul Rubin <http://[EMAIL PROTECTED]> 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. -- http://mail.python.org/mailman/listinfo/python-list