[issue24624] Itertools documentation says iterator when iterable is intended

2015-07-13 Thread Neil Girdhar
Neil Girdhar added the comment: Ah, good point. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24624 ___ ___ Python-bugs-list mailing list

[issue24624] Itertools documentation says iterator when iterable is intended

2015-07-12 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - not a bug stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24624 ___

[issue24624] Itertools documentation says iterator when iterable is intended

2015-07-12 Thread Neil Girdhar
New submission from Neil Girdhar: In the description of the consume recipe: def consume(iterator, n): Advance the iterator n-steps ahead. If n is none, consume entirely. # Use functions that consume iterators at C speed. if n is None: # feed the entire iterator into a

[issue24624] Itertools documentation says iterator when iterable is intended

2015-07-12 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Mon, Jul 13, 2015 at 01:37:26AM +, Neil Girdhar wrote: New submission from Neil Girdhar: In the description of the consume recipe: [...] iterator should be replaced with iterable. This function accepts strings for example, which are not