[New-bugs-announce] [issue5350] Modification to "pairwise" in itertools recipes

Matteo Dell'Amico report at bugs.python.org
Mon Feb 23 14:37:12 CET 2009


New submission from Matteo Dell'Amico <della at linux.it>:

I feel that the "pairwise" recipe could be slightly more elegant if "for
elem in b: break" became a simpler next(b) (or b.next() for Python 2.x).
It is also more natural to modify the recipes to suit one's needs (e.g.,
returning items with a given gap between them, or convert the recipe to
k-wise iteration).

----------
assignee: georg.brandl
components: Documentation
messages: 82626
nosy: della, georg.brandl
severity: normal
status: open
title: Modification to "pairwise" in itertools recipes

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5350>
_______________________________________


More information about the New-bugs-announce mailing list