[issue20103] Documentation of itertools.accumulate is confused

2014-04-15 Thread A.M. Kuchling
A.M. Kuchling added the comment: Thanks for your patch! -- assignee: rhettinger -> akuchling nosy: +akuchling resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue20103] Documentation of itertools.accumulate is confused

2014-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9e1d2150fff2 by Andrew Kuchling in branch 'default': #20103: Rewrite description of itertools.accumulate(). http://hg.python.org/cpython/rev/9e1d2150fff2 -- nosy: +python-dev ___ Python tracker

[issue20103] Documentation of itertools.accumulate is confused

2014-04-15 Thread Christian Hudon
Christian Hudon added the comment: Second revision, incorporating comments. Also document the behavior when passed an empty input iterable. -- Added file: http://bugs.python.org/file34878/accumulate2.diff ___ Python tracker

[issue20103] Documentation of itertools.accumulate is confused

2014-04-15 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20103] Documentation of itertools.accumulate is confused

2014-04-14 Thread Christian Hudon
Christian Hudon added the comment: The following patch improves (I hope) the documentation of itertools.accumulate. Comments and feedback welcome. Terry, I did not implement your suggestion of changing "returns" to "yields", as it would have made things inconsistent with the documentation (and

[issue20103] Documentation of itertools.accumulate is confused

2014-01-07 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger priority: normal -> low ___ Python tracker ___ ___ Python-bugs-l

[issue20103] Documentation of itertools.accumulate is confused

2014-01-03 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy nosy: +ezio.melotti type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mai

[issue20103] Documentation of itertools.accumulate is confused

2014-01-03 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue20103] Documentation of itertools.accumulate is confused

2014-01-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Somewhat orthogonal to Mitchell's suggestion, I would change 'returns' to 'yields' and expand 'elements' to 'elements of *iterable*'. -- nosy: +terry.reedy ___ Python tracker

[issue20103] Documentation of itertools.accumulate is confused

2014-01-01 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue20103] Documentation of itertools.accumulate is confused

2014-01-01 Thread Mitchell Model
New submission from Mitchell Model: The documentation of itertools.accumulate (10.1) starts out with 2 misleading sentences: "Make an iterator that returns accumulated sums. Elements may be any addable type..." It then goes on to show examples of using the func parameter added in 3.3 that are