-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
functools.partialmethod simplification #124652
Copy link
Copy link
Open
3 / 33 of 3 issues completedLabels
extension-modulesC modules in the Modules dirC modules in the Modules dirstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement
Metadata
Metadata
Assignees
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement
Feature or enhancement
Proposal:
Now, as
partialhas__get__andPlaceholderit is probably a good idea to simplifypartialmethod.So the mental model of
partialmethodcan simply be:partial, which always has the first argument set toPlaceholder.So
partialmethodcould maybe be a subclasspartial, which would potentially simplify things.Also, maybe there is a way so that
partialmethodcan be made obsolete altogether.Will see where I can get to with this.
Any ideas welcome.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
#121027
#119827 (comment)
Linked PRs