This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients mark.dickinson, vstinner
Date 2022-02-06.14:50:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1644159058.78.0.632025300026.issue46656@roundup.psfhosted.org>
In-reply-to
Content
> Is the macro PY_NO_SHORT_FLOAT_REPR also related to platforms which don't support IEEE 754?

Yes, though it's a bit more than that: we also need the platform either not to have issues with double rounding for normal numbers, or we need to be able to control the x87 rounding mode in the case that double rounding might be an issue. See the explanations in the source.

https://github.com/python/cpython/blob/025cbe7a9b5d3058ce2eb8015d3650e396004545/Include/pyport.h#L345-L355

> In 2022, which platforms don't support IEEE 754?

None that CPython might plausibly run on that I'm aware of.
History
Date User Action Args
2022-02-06 14:50:58mark.dickinsonsetrecipients: + mark.dickinson, vstinner
2022-02-06 14:50:58mark.dickinsonsetmessageid: <1644159058.78.0.632025300026.issue46656@roundup.psfhosted.org>
2022-02-06 14:50:58mark.dickinsonlinkissue46656 messages
2022-02-06 14:50:58mark.dickinsoncreate