Antoon Pardon <[EMAIL PROTECTED]> writes: > >>> for x in takewhile(foo() for _ in repeat(None)): > ... print x > ... > Traceback (most recent call last): > File "<stdin>", line 1, in ? > TypeError: takewhile expected 2 arguments, got 1
Yeah, I cancelled and posted a followup for x in takewhile(bool, foo() for _ in repeat(None)): print x but I haven't tested either way. -- http://mail.python.org/mailman/listinfo/python-list