gh-145633: remove support for ancient ARM platforms with mixed-endian doubles#145634
gh-145633: remove support for ancient ARM platforms with mixed-endian doubles#145634vstinner merged 12 commits intopython:mainfrom
Conversation
…endian doubles * drop DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 macro * use DOUBLE_IS_BIG/LITTLE_ENDIAN_IEEE754 to detect endianness of float/doubles * drop "unknown_format" code path in PyFloat_Pack/Unpack*()
|
Edit: Mark Dickinson suggested to keep this for alternative Python implementations. |
|
cc @diegorusso |
There was a problem hiding this comment.
This is more a generic question about the process. Shouldn't we follow the usual removal process (warning + removal)?
In this specific case, it might be still OK just to drop it as I really doubt these that the OS on these old devices wants to ship Python 3.15.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase And if you don't make the requested changes, you will be put in the comfy chair! |
I reply to my own question. This is not a language change hence safe to remove. Also the probability that this will affect users is extremely low. |
use _py_float_format_ieee_little_endian as a default.
A bit of history, 2a9c380 (eight years ago) says:
I'm OK to make first deprecation. Though, at least lets not wait too much (aka "preferred" scenario per PEP 387). But honestly, I don't see big reason to delay removal. You know much more about ARM world, can we have any practical use case here?
Yes, I just removed all logic for handling float_state in favor of macros. BTW, maybe we could just use platform endianness? I have made the requested changes; please review again. |
|
Thanks for making the requested changes! @diegorusso: please review the changes made to this pull request. |
Misc/NEWS.d/next/Build/2026-03-08-06-18-26.gh-issue-145633.Ogu-RF.rst
Outdated
Show resolved
Hide resolved
Co-authored-by: Victor Stinner <vstinner@python.org>
vstinner
left a comment
There was a problem hiding this comment.
LGTM. I'm ok to drop support for this legacy platform right now.
|
@vstinner, what do you think on using platform endianness? Current version assumes, that endianness for floating-point numbers can be different wrt |
If you want to remove |
|
I agree with @vstinner Let's merge this and tackle the removal of the MACROS in another PR. |
There was a problem hiding this comment.
This LGTM and thanks for removing lots of dead code. I'll leave to @vstinner to merge.
|
🤖 New build scheduled with the buildbot fleet by @skirpichev for commit f70428d 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F145634%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
|
I think there are no failures from buildbots, related to this pr. As expected, it should affect ARM bots, at most. |
|
"Merge branch 'main' into remove-unknown_format": Please don't touch a PR when buildbots are run on it, otherwise it's way more difficult to check for buildbots status. I see 3 buildbot failures, all are unrelated to this change.
|
|
Merged, thanks for this cleanup. The change should not impact anyone in practice, since it only impacts old architectures (ARMv4L and ARMv5L) using a specific ABI (OABI). |
|
Uh oh!
There was an error while loading. Please reload this page.