itertools.izip brokeness

Paul Rubin http
Wed Jan 4 04:32:17 EST 2006


"Raymond Hettinger" <python at rcn.com> writes:
> Feel free to submit a feature request to the SF tracker (surprisingly,
> this behavior has not been previously reported, nor have there any
> related feature requests, nor was the use case contemplated in the PEP
> discussions: http://www.python.org/peps/pep-0201 ).

What do you think of my suggestion of passing an optional arg to the
StopIteration constructor, that the caller can use to resume the
iterator or take other suitable recovery steps?  Maybe this could
interact with PEP 343 in some useful way.




More information about the Python-list mailing list