[issue25193] itertools.accumlate should have an optional initializer argument

Raymond Hettinger report at bugs.python.org
Mon Sep 21 07:14:58 CEST 2015


Raymond Hettinger added the comment:

AFAICT other implementations of accumulators do not have an initializer.  See:

* http://docs.scipy.org/doc/numpy/reference/generated/numpy.ufunc.accumulate.html

* https://stat.ethz.ch/R-manual/R-devel/library/base/html/cumsum.html

* http://microapl.com/apl/apl_concepts_chapter5.html
  \+ 1 2 3 4 5
  1 3 6 10 15

* https://reference.wolfram.com/language/ref/Accumulate.html

----------

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


More information about the Python-bugs-list mailing list