We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
functools.partialmethod
Now, as partial has __get__ and Placeholder it is probably a good idea to simplify partialmethod.
partial
__get__
Placeholder
partialmethod
So the mental model of partialmethod can simply be:
partial, which always has the first argument set to Placeholder.
So partialmethod could maybe be a subclass partial, which would potentially simplify things.
Also, maybe there is a way so that partialmethod can be made obsolete altogether.
Will see where I can get to with this. Any ideas welcome.
This is a minor feature, which does not need previous discussion elsewhere
#121027 #119827 (comment)
The text was updated successfully, but these errors were encountered:
Note that partialmethod also copies __isabstractmethod__ from the underlying callable.
__isabstractmethod__
Sorry, something went wrong.
add commented fix if merging after pythongh-124652
a7142d5
No branches or pull requests
Feature or enhancement
Proposal:
Now, as
partial
has__get__
andPlaceholder
it is probably a good idea to simplifypartialmethod
.So the mental model of
partialmethod
can simply be:partial
, which always has the first argument set toPlaceholder
.So
partialmethod
could maybe be a subclasspartial
, which would potentially simplify things.Also, maybe there is a way so that
partialmethod
can 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
The text was updated successfully, but these errors were encountered: