Skip to content

[3.15] gh-156101: Don't set the result in error in PyLong_AsInt32() (GH-156727) - #156728

Merged
vstinner merged 2 commits into
python:3.15from
miss-islington:backport-63f6626-3.15
Oct 9, 2026
Merged

vstinner merged 2 commits into
python:3.15from
miss-islington:backport-63f6626-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Don't set the result in error in PyLong_AsInt32(), PyLong_AsUInt32(),
PyLong_AsInt64() and PyLong_AsUInt64(). Leave the result unchanged in
this case.
(cherry picked from commit 63f6626)

Co-authored-by: Victor Stinner vstinner@python.org

…ythonGH-156727)

Don't set the result in error in PyLong_AsInt32(), PyLong_AsUInt32(),
PyLong_AsInt64() and PyLong_AsUInt64(). Leave the result unchanged in
this case.
(cherry picked from commit 63f6626)

Co-authored-by: Victor Stinner <vstinner@python.org>
@vstinner
vstinner merged commit 03c2df3 into python:3.15 Oct 9, 2026
53 checks passed
@miss-islington
miss-islington deleted the backport-63f6626-3.15 branch October 9, 2026 21:28
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.

2 participants