]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-145633: Fix struct.pack('f') on s390x (#146422)
authorVictor Stinner <vstinner@python.org>
Thu, 26 Mar 2026 11:12:49 +0000 (12:12 +0100)
committerGitHub <noreply@github.com>
Thu, 26 Mar 2026 11:12:49 +0000 (11:12 +0000)
commit8de70b31c59b1d572d95f8bb471a09cfe4cd2b13
tree6b47855aa3e612a6c4330f9290149caa2799b129
parent1038a3ab2e072ad5f367743463b6bf10c64cea9f
gh-145633: Fix struct.pack('f') on s390x (#146422)

Use PyFloat_Pack4() to raise OverflowError.
Add more tests on packing/unpacking floats.

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Lib/test/test_struct.py
Misc/NEWS.d/next/Library/2026-03-26-11-04-42.gh-issue-145633.RWjlaX.rst [new file with mode: 0644]
Modules/_struct.c