Clarify docs for error case of PyDict_GetItemRef - #149506
Conversation
e873771 to
de69c83
Compare
Documentation build overview
|
de69c83 to
2abbc1e
Compare
|
Thanks @ngoldbaum for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15. |
|
GH-149546 is a backport of this pull request to the 3.15 branch. |
|
GH-149547 is a backport of this pull request to the 3.14 branch. |
|
Thanks @ngoldbaum for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
|
GH-149548 is a backport of this pull request to the 3.13 branch. |
…49506) (#149548) docs: Clarify docs for error case of `PyDict_GetItemRef` (GH-149506) (cherry picked from commit 3565d31) Co-authored-by: Nathan Goldbaum <[email protected]>
…49506) (#149546) docs: Clarify docs for error case of `PyDict_GetItemRef` (GH-149506) (cherry picked from commit 3565d31) Co-authored-by: Nathan Goldbaum <[email protected]>
…49506) (#149547) docs: Clarify docs for error case of `PyDict_GetItemRef` (GH-149506) (cherry picked from commit 3565d31) Co-authored-by: Nathan Goldbaum <[email protected]>
|
It wasn't documented to leave it as an implementation detail. But if you consider that it's useful, yeah, why not documenting it. |
I manually inspected and asked Claude to inspect the implementation, and I think all error paths set
*resultto NULL.See numpy/numpy#31256 (comment) for where this came up for me today.