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
sobolevn
left a comment
There was a problem hiding this comment.
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