[New-bugs-announce] [issue31082] reduce takes iterable, not just sequence
Stefan Pochmann
report at bugs.python.org
Sun Jul 30 17:06:27 EDT 2017
New submission from Stefan Pochmann:
functools.reduce has a parameter called "iterable" and it only needs to be an iterable, not a sequence.
The paragraph documenting it says "sequence" instead of "iterable" six times:
https://docs.python.org/3/library/functools.html#functools.reduce
The help shown by executing "help(functools.reduce)" in Python additionally actually names the parameter "sequence" in the signature.
----------
assignee: docs at python
components: Documentation
messages: 299520
nosy: Stefan Pochmann, docs at python
priority: normal
severity: normal
status: open
title: reduce takes iterable, not just sequence
type: enhancement
versions: Python 3.6, Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31082>
_______________________________________
More information about the New-bugs-announce
mailing list