-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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-86069: correct object.__ipow__() signature #130103
base: main
Are you sure you want to change the base?
gh-86069: correct object.__ipow__() signature #130103
Conversation
There is no way to call ternary form of this dunder.
See Lines 9905 to 9911 in 28f5e3d
So, PyNumber_InPlacePower just ignores the o3 now. Maybe its docs also should be adjusted? |
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.
this seems to be correct change.
Look at |
How you can invoke it? (excluding a direct call of the dunder) |
By a direct call of |
"excluding a direct call of the dunder"?) |
Don't exclude it. Signature describes the direct call. |
Well, why someone will prefer a dunder method over a public method, that does same?) Edit: similar to #122260 (3-arg |
There is no way to call ternary form of this dunder.
📚 Documentation preview 📚: https://cpython-previews--130103.org.readthedocs.build/