You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow functools.reduces 'initial' to be a keyword argument #125916
Allowing initial as keyword argument will be more clear, and initial could also be passed as a keyword argument while making partial functions out of reduce.
Has this already been discussed elsewhere?
I have already discussed this feature proposal on Discourse
Activity
skirpichev commentedon Oct 24, 2024
See also #121677
skirpichev commentedon Oct 24, 2024
Also see #96640.
@sobolevn, did you actually try to do conversion and benchmark it?
pythongh-125916: convert reduce() to Argument Clinic
gh-125916: Adapt functools.reduce() to Argument Clinic (#125999)
gh-125916: Allow functools.reduce() 'initial' to be a keyword argument (
pythongh-125916: Adapt functools.reduce() to Argument Clinic (python#…
pythongh-125916: Allow functools.reduce() 'initial' to be a keyword a…
pythongh-125916: Adapt functools.reduce() to Argument Clinic (python#…
pythongh-125916: Allow functools.reduce() 'initial' to be a keyword a…
functools.reducedoes not accept keyword arguments for its parameters #139114 as a duplicate of this issue