Skip to content

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

Open
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-63f6626-3.15
Open

[3.15] gh-156101: Don't set the result in error in PyLong_AsInt32() (GH-156727)#156728
miss-islington wants to merge 1 commit 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants