Commit 558dcf38 authored by Raymond Hettinger's avatar Raymond Hettinger

Issue #23049: Pure python equivalent shouldn't imply more exactitude than is really there.

parent 5bbd231f
...@@ -250,7 +250,7 @@ The :mod:`functools` module defines the following functions: ...@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment