Closed XuehaiPan closed 1 year ago
(A clear and concise description of the issue.)
The function signature mismatch for functools.reduce:
functools.reduce
C implementation:
_initial_missing = object() @overload def reduce(function, iterable, /): ... @overload def reduce(function, iterable, initial=_initial_missing, /): ...
Python implementation:
_initial_missing = object() @overload def reduce(function, sequence): ... @overload def reduce(function, sequence, initial=_initial_missing): ...
Argument change: iterable -> sequence.
iterable -> sequence
Online documentation:
def reduce(function, iterable, initializer=None): ...
Argument change: initial -> initializer.
initial -> initializer
Can anyone have a look at this and my PR #102759?
Closed via PR #102759.
Documentation
(A clear and concise description of the issue.)
The function signature mismatch for
functools.reduce
:C implementation:
Python implementation:
Argument change:
iterable -> sequence
.Online documentation:
Argument change:
initial -> initializer
.Linked PRs