[docs] [issue31082] reduce takes iterable, not just sequence
Serhiy Storchaka
report at bugs.python.org
Sat Aug 5 00:26:33 EDT 2017
Serhiy Storchaka added the comment:
Yes, I think it can. But be aware that "sequence" is used not only in the signature, but in following description.
The term "sequence" in the documentation and the docstring looks to me like a synonym of "iterable", not a reference to collections.abc.Sequence. I don't know how the wording can be improved. Maybe looking at the documentation of builtins filter, map, zip, and itertools functions can help.
----------
nosy: +ncoghlan, rhettinger
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31082>
_______________________________________
More information about the docs
mailing list