[issue7764] Doc for itertools recipe consume is complicated and less efficient

2010-04-02 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7764 ___

[issue7764] Doc for itertools recipe consume is complicated and less efficient

2010-01-25 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: No problem. Will forward port when I get a chance. -- versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7764

[issue7764] Doc for itertools recipe consume is complicated and less efficient

2010-01-25 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Raymond, before porting you should check the typos reported in issue #7778. -- dependencies: +Typo(s) in ``itertools`` documentation reST marker nosy: +ezio.melotti stage: needs patch - commit review

[issue7764] Doc for itertools recipe consume is complicated and less efficient

2010-01-24 Thread Muhammad Alkarouri
Muhammad Alkarouri malkaro...@gmail.com added the comment: Excellent solution and comments. Many thanks. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7764 ___

[issue7764] Doc for itertools recipe consume is complicated and less efficient

2010-01-24 Thread Jan Kaliszewski
Changes by Jan Kaliszewski z...@chopin.edu.pl: -- title: dictview - Doc for itertools recipe consume is complicated and less efficient ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7764 ___

[issue7764] Doc for itertools recipe consume is complicated and less efficient

2010-01-24 Thread Jan Kaliszewski
Jan Kaliszewski z...@chopin.edu.pl added the comment: (sorry! typed into a wrong field) -- nosy: +zuo versions: +Python 2.6, Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7764

[issue7764] Doc for itertools recipe consume is complicated and less efficient

2010-01-24 Thread Florent Xicluna
Florent Xicluna la...@yahoo.fr added the comment: Changeset r77721 should be ported to trunk, and py3k probably. -- nosy: +flox status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7764

[issue7764] Doc for itertools recipe consume is complicated and less efficient

2010-01-24 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Remain calm. I left the status as Open for a reason. When I'm satisfied that people are reacting well to the new update, will port to other versions. -- ___ Python tracker

[issue7764] Doc for itertools recipe consume is complicated and less efficient

2010-01-24 Thread Muhammad Alkarouri
Muhammad Alkarouri malkaro...@gmail.com added the comment: Mea culpa. Not knowing the conventions here, I closed the ticket, which probably resulted in florent's feedback. I will leave you to it then. -- ___ Python tracker rep...@bugs.python.org

[issue7764] Doc for itertools recipe consume is complicated and less efficient

2010-01-23 Thread Muhammad Alkarouri
New submission from Muhammad Alkarouri malkaro...@gmail.com: Based on the discussion at: http://groups.google.co.uk/group/comp.lang.python/browse_thread/thread/c1ae3513a31eb63e/d0701a9902732c67?hl=en#d0701a9902732c67 In the documentation of itertools, one of the functions provided in the

[issue7764] Doc for itertools recipe consume is complicated and less efficient

2010-01-23 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +rhettinger priority: - normal stage: - needs patch versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7764

[issue7764] Doc for itertools recipe consume is complicated and less efficient

2010-01-23 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: georg.brandl - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7764 ___ ___

[issue7764] Doc for itertools recipe consume is complicated and less efficient

2010-01-23 Thread Peter Otten
Peter Otten __pete...@web.de added the comment: As noted on comp.lang.python the implementation can be simplified to def consume(items, n): next(islice(items, n, n), None) When I suggested the above I wasn't aware that consume(items, None) should exhaust the entire iterator.

[issue7764] Doc for itertools recipe consume is complicated and less efficient

2010-01-23 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Will switch to the version using next() instead of deque(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7764 ___

[issue7764] Doc for itertools recipe consume is complicated and less efficient

2010-01-23 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: See r77721 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7764 ___ ___