SIGN IN SIGN UP

[3.13] gh-145633: Fix struct.pack('f') on s390x (#146422) (#146461)

gh-145633: Fix struct.pack('f') on s390x (#146422)

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


(cherry picked from commit 8de70b31c59b1d572d95f8bb471a09cfe4cd2b13)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
V
Victor Stinner committed
921515f603980b6cd8418c5bed444b52edbff1ea
Parent: fc4b422
Committed by GitHub <noreply@github.com> on 3/26/2026, 11:45:10 AM