David W. Lambert <lamber...@corning.com> 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 <rep...@bugs.python.org>
<http://bugs.python.org/issue5350>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to