[docs] [issue16774] Additional recipes for itertools docs

Alexey Kachayev report at bugs.python.org
Sat Jan 19 10:31:10 CET 2013


Alexey Kachayev added the comment:

It's hard to evaluate how popular given recipes, but:
* drop is opposite to take, so it's as popular as take
* the same situation with splitat, splitby - it's one case of partition that's hard to write each time with enumerator (partition is already in documentation)
* takelast, droplast was added cause itertools.islice doesn't support negative indices (which is ok). both functions have not obvious implementation - I'm sure that recipes will be good example for users how to work with iterators even if concrete functions aren't so widely-spreaded

----------

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


More information about the docs mailing list