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 commented on Oct 24, 2024
See also #121677
skirpichev commented on 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…