[issue34659] Inconsistency between functools.reduce & itertools.accumulate

Azat Ishmukhametovich Ibrakov report at bugs.python.org
Thu Sep 13 09:16:59 EDT 2018


New submission from Azat Ishmukhametovich Ibrakov <azatibrakov at gmail.com>:

Why there is an optional `initial` parameter for `functools.reduce` function, but there is no such for `itertools.accumulate`, when they both are doing kind of similar things except that `itertools.accumulate` yields intermediate results and `functools.reduce` only the final one?

----------
components: Library (Lib)
messages: 325243
nosy: lycantropos
priority: normal
severity: normal
status: open
title: Inconsistency between functools.reduce & itertools.accumulate
type: enhancement
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34659>
_______________________________________


More information about the Python-bugs-list mailing list