Message299520
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. |
|
Date |
User |
Action |
Args |
2017-07-30 21:06:27 | Stefan Pochmann | set | recipients:
+ Stefan Pochmann, docs@python |
2017-07-30 21:06:27 | Stefan Pochmann | set | messageid: <1501448787.5.0.80084797494.issue31082@psf.upfronthosting.co.za> |
2017-07-30 21:06:27 | Stefan Pochmann | link | issue31082 messages |
2017-07-30 21:06:27 | Stefan Pochmann | create | |
|