[issue5350] Modification to "pairwise" in itertools recipes
David W. Lambert
report at bugs.python.org
Mon Feb 23 21:13:45 CET 2009
David W. Lambert <lambertdw at 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 <report at bugs.python.org>
<http://bugs.python.org/issue5350>
_______________________________________
More information about the Python-bugs-list
mailing list