-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
gh-141004: Document PyFunction_SetKwDefaults
#141294
New issue
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
gh-141004: Document PyFunction_SetKwDefaults
#141294
Conversation
I'm sleepy.
| Set the keyword-only argument default values of the function object *op*. | ||
| *defaults* must be a dictionary of keyword-only arguments or ``Py_None``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Set the keyword-only argument default values of the function object *op*. | |
| *defaults* must be a dictionary of keyword-only arguments or ``Py_None``. | |
| Set the keyword-only parameter default values of the function object *op*. | |
| *defaults* must be a dictionary of keyword-only parameters or ``Py_None``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We say "argument" everywhere else in this file, so I'd rather not deviate from it here. I don't think that the distinction is particularly helpful for readers here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a fan of such a precedent, but unfortunately it is. Fixing this is tracked in #133438.
StanFromIreland
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Thanks @ZeroIntensity for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
(cherry picked from commit 18529b5) Co-authored-by: Peter Bierma <[email protected]>
|
GH-141304 is a backport of this pull request to the 3.14 branch. |
(cherry picked from commit 18529b5) Co-authored-by: Peter Bierma <[email protected]>
|
GH-141305 is a backport of this pull request to the 3.13 branch. |
…-141305) gh-141004: Document `PyFunction_SetKwDefaults` (GH-141294) (cherry picked from commit 18529b5) Co-authored-by: Peter Bierma <[email protected]>
…-141304) gh-141004: Document `PyFunction_SetKwDefaults` (GH-141294) (cherry picked from commit 18529b5) Co-authored-by: Peter Bierma <[email protected]>
📚 Documentation preview 📚: https://cpython-previews--141294.org.readthedocs.build/en/141294/c-api/function.html#c.PyFunction_SetKwDefaults