GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Allow `functools.reduce`s 'initial' to be a keyword argument · Issue #125916 · python/cpython Closed Labels extension-modulesC modules in the Modules dirC modules in the Modules dirtype-featureA feature request or enhancementA feature request or enhancement DescriptionFeature or enhancementProposal:
https://docs.python.org/3/library/functools.html#functools.reduce However, from functools import reduce from operator import sub >>> reduce(sub, [1, 1, 2, 3, 5, 8], 21) 1 >>> reduce(sub, [1, 1, 2, 3, 5, 8], initial=21) TypeError: reduce() takes no keyword arguments Allowing Has this already been discussed elsewhere?I have already discussed this feature proposal on Discourse Links to previous discussion of this feature:https://discuss.python.org/t/remove-positional-only-restriction-on-initial-parameter-of-reduce/68897 Linked PRsActivity
MetadataMetadataAssigneesLabelsextension-modulesC modules in the Modules dirC modules in the Modules dirtype-featureA feature request or enhancementA feature request or enhancement ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |