-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
gh-101967: add a missing error check #101968
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
Conversation
positional_only_passed_as_keyword functionpositional_only_passed_as_keyword function
positional_only_passed_as_keyword functionpositional_only_passed_as_keyword function
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.
Yes, NULL can be returned by PyList_New when there's no memory left.
I don't think that we need to test this case.
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
positional_only_passed_as_keyword function|
The MacOS build failure is unrelated. |
|
Thanks @Eclips4 for the PR, and @iritkatriel for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11. |
(cherry picked from commit 89413bb) Co-authored-by: Eclips4 <80244920+Eclips4@users.noreply.github.com>
|
GH-102016 is a backport of this pull request to the 3.10 branch. |
(cherry picked from commit 89413bb) Co-authored-by: Eclips4 <80244920+Eclips4@users.noreply.github.com>
|
Thanks @Eclips4 for the PR, and @iritkatriel for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
|
Sorry, @Eclips4 and @iritkatriel, I could not cleanly backport this to |
|
GH-114738 is a backport of this pull request to the 3.9 branch. |
Resolves #101967
According to the semantics of function, I prefered to return
1instead ofNULL. Does it correct?positional_only_passed_as_keywordcan be failed with segfault #101967