Skip to content

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

Open
vstinner wants to merge 2 commits intopython:mainfrom
vstinner:pack_float
Open

gh-145633: Fix struct.pack('f') on s390x#146422
vstinner wants to merge 2 commits intopython:mainfrom
vstinner:pack_float

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Mar 25, 2026

Use PyFloat_Pack4() to raise OverflowError.

Add more tests on packing/unpacking floats.

Use PyFloat_Pack4() to raise OverflowError.

Add more tests on packing/unpacking floats.
@vstinner
Copy link
Member Author

@skirpichev: Would you mind to review this change?

Copy link
Member

@skirpichev skirpichev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Sorry, I forgot to submit review yesterday.)

Looks ok, but maybe we should rather keep test_705836(), just with a small addition in the end.

Co-authored-by: Sergey B Kirpichev <[email protected]>
@vstinner
Copy link
Member Author

!buildbot s390x Fedora Stable

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @vstinner for commit ce1093b 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F146422%2Fmerge

The command will test the builders whose names match following regular expression: s390x Fedora Stable

The builders matched are:

  • s390x Fedora Stable Clang Installed PR
  • s390x Fedora Stable Refleaks PR
  • s390x Fedora Stable Clang PR
  • s390x Fedora Stable LTO + PGO PR
  • s390x Fedora Stable LTO PR
  • s390x Fedora Stable PR

@vstinner
Copy link
Member Author

!buildbot SPARCv9 Oracle Solaris 11.4 PR

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @vstinner for commit ce1093b 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F146422%2Fmerge

The command will test the builders whose names match following regular expression: SPARCv9 Oracle Solaris 11.4 PR

The builders matched are:

  • SPARCv9 Oracle Solaris 11.4 PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants