[issue16774] Additional recipes for itertools docs

2014-05-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: In the end, I decided to add a variant of take_last(). Thank you for the suggestion. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue16774] Additional recipes for itertools docs

2014-05-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2781fb146f4a by Raymond Hettinger in branch 'default': Issue 16774: Add a new itertools recipe (suggested by Alexey Kachayev). http://hg.python.org/cpython/rev/2781fb146f4a -- nosy: +python-dev ___ Pytho

[issue16774] Additional recipes for itertools docs

2014-05-25 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- versions: +Python 3.5 -Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___ ___ Pyt

[issue16774] Additional recipes for itertools docs

2013-03-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: I will add drop() to the recipes and possibly take_last() which I would rename add tail(). Sorry, I don't have interest in the others. I don't find them instructive or very useful. -- priority: normal -> low __

[issue16774] Additional recipes for itertools docs

2013-01-19 Thread Alexey Kachayev
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 document

[issue16774] Additional recipes for itertools docs

2013-01-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: How are popular the proposed recipes? Not every possible combination of functions is worth to mention in the documentation. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue16774] Additional recipes for itertools docs

2013-01-18 Thread Alexey Kachayev
Alexey Kachayev added the comment: Updated patch with: * fix error in islice function name * made n=None default second argument for consume(iterator, n=None) cause it provides specific behavior when n is None which can be assumed as default for function -- Added file: http://bugs.pyth

[issue16774] Additional recipes for itertools docs

2012-12-25 Thread Alexey Kachayev
Alexey Kachayev added the comment: Added: * takelast * droplast -- Added file: http://bugs.python.org/file28433/itertools.doc.v2.diff ___ Python tracker ___ _

[issue16774] Additional recipes for itertools docs

2012-12-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: docs@python -> rhettinger nosy: +ezio.melotti, rhettinger stage: -> patch review type: -> enhancement versions: +Python 2.7, Python 3.2, Python 3.3 ___ Python tracker __

[issue16774] Additional recipes for itertools docs

2012-12-24 Thread Alexey Kachayev
New submission from Alexey Kachayev: Additional recipes for itertools documentation (widespread functions in other programming languages): * drop * split-at * split-by -- assignee: docs@python components: Documentation files: itertools.doc.diff keywords: patch messages: 178098 nosy: asv