-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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-101967: add a missing error check #101968
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 <[email protected]>
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 <[email protected]>
GH-102016 is a backport of this pull request to the 3.10 branch. |
(cherry picked from commit 89413bb) Co-authored-by: Eclips4 <[email protected]>
(cherry picked from commit 89413bb) Co-authored-by: Eclips4 <[email protected]>
gh-101967: add a missing error check (GH-101968) (cherry picked from commit 89413bb) Co-authored-by: Eclips4 <[email protected]> Co-authored-by: Shantanu <[email protected]>
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
1
instead ofNULL
. Does it correct?positional_only_passed_as_keyword
can be failed with segfault #101967