Skip to content

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

Merged
vstinner merged 1 commit into
python:3.14from
miss-islington:backport-63f6626-3.14
Aug 31, 2026
Merged

vstinner merged 1 commit into
python:3.14from
miss-islington:backport-63f6626-3.14

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 enabled auto-merge (squash) August 31, 2026 17:48
@vstinner
vstinner merged commit e57c494 into python:3.14 Aug 31, 2026
51 checks passed
@miss-islington
miss-islington deleted the backport-63f6626-3.14 branch August 31, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants