mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Issue #23049: Pure python equivalent shouldn't imply more exactitude than is really there.
This commit is contained in:
parent
5bbd231f27
commit
558dcf38e6
1 changed files with 1 additions and 1 deletions
|
|
@ -250,7 +250,7 @@ The :mod:`functools` module defines the following functions:
|
||||||
a default when the sequence is empty. If *initializer* is not given and
|
a default when the sequence is empty. If *initializer* is not given and
|
||||||
*sequence* contains only one item, the first item is returned.
|
*sequence* contains only one item, the first item is returned.
|
||||||
|
|
||||||
Equivalent to::
|
Roughly equivalent to::
|
||||||
|
|
||||||
def reduce(function, iterable, initializer=None):
|
def reduce(function, iterable, initializer=None):
|
||||||
it = iter(iterable)
|
it = iter(iterable)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue