David W. Lambert <[email protected]> added the comment:
Nice. I had thought of this a while ago but found counter example,
probably using the empty iterator
def f():
raise StopIteration
yield
I didn't realize "next" had optional argument.
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue5350>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com