Skip to content

[3.15] gh-159430: Add _PyObject_LookupSpecial error checks in bytes/weakref (GH-159432) - #159474

Merged
encukou merged 1 commit into
python:3.15from
miss-islington:backport-3646ea5-3.15
Oct 16, 2026
Merged

encukou merged 1 commit into
python:3.15from
miss-islington:backport-3646ea5-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

_PyObject_LookupSpecial needs a PyErr_Occurred() check to handle
failures while during the lookup, or else it can fail with a "returned
a result with an exception set" error.

Add some missing ones in bytes and weakref/
(cherry picked from commit 3646ea5)

Co-authored-by: Michael J. Sullivan sully@msully.net

…akref (pythonGH-159432)

_PyObject_LookupSpecial needs a PyErr_Occurred() check to handle
failures while during the lookup, or else it can fail with a "returned
a result with an exception set" error.

Add some missing ones in bytes and weakref/
(cherry picked from commit 3646ea5)

Co-authored-by: Michael J. Sullivan <sully@msully.net>
@encukou
encukou merged commit df1a0fc into python:3.15 Oct 16, 2026
56 checks passed
@miss-islington
miss-islington deleted the backport-3646ea5-3.15 branch October 16, 2026 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants