-
-
Notifications
You must be signed in to change notification settings - Fork 32k
Fix issues gh-86199 gh-86795 #92192
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
base: main
Are you sure you want to change the base?
Fix issues gh-86199 gh-86795 #92192
Conversation
Figured it out, managed to reset the authorship and repush so it's now credited to my new private GitHub e-mail that CLA-bot recognizes, so everything should be good now. |
Preventing compiler from inserting unnecessary dict build and merge when only **kwargs passed Make PyObject_Call copy any incoming keyword argument dicts when the callable in question is not vectorcall to avoid possibility of callee modifying caller's dict Add tests that verify documented equivalence between callable(**kwargs) and PyObject_Call(callable, (), kwargs)
Preventing compiler from inserting unnecessary dict build and merge when only **kwargs passed Make PyObject_Call copy any incoming keyword argument dicts when the callable in question is not vectorcall to avoid possibility of callee modifying caller's dict Add tests that verify documented equivalence between callable(**kwargs) and PyObject_Call(callable, (), kwargs)
4a8517f
to
b205d6b
Compare
Misc/NEWS.d/next/Core and Builtins/2022-05-02-20-19-06.gh-issue-86199.IZbF0m.rst
Outdated
Show resolved
Hide resolved
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.
Looks good, apart from one more reST nit.
Also: @mentioning people in commit messages has historically led to an awful lot of unneeded pinging from forks, other PR's, etc. I don't know if GitHub addressed this problem1, but I find it best to stay on the cautious side, and just not do that; reducing the number of pings is a welcome consideration 😉
Footnotes
-
UPDATE: confirming that I actually got an extra ping because of the commit message ↩
Misc/NEWS.d/next/Core and Builtins/2022-05-02-20-19-06.gh-issue-86199.IZbF0m.rst
Outdated
Show resolved
Hide resolved
…e-86199.IZbF0m.rst Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Accepted as given.
Oops, did not know that would happen. Will avoid in the future. |
…ut dict is plain dict with no history of deletions (the common case)
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
Please resolve conflicts. Also, please fix the PR title to |
@MojoVampire, are you planning to follow up this PR? If not, I suggest closing it. |
Sorry, I've had a hell of a year. I'm going to try to rebase this soon. |
The following commit authors need to sign the Contributor License Agreement: |
Fix issues #86199 and #86795 by centralizing copying of keyword arguments in
PyObject_Call
only when needed