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 <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 |
(cherry picked from commit 89413bbccb9261b72190e275eefe4b0d49671477) 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>
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