]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-138580: Add sys.float_info.iec_60559 boolean flag (#138811)
authorSergey B Kirpichev <skirpichev@gmail.com>
Tue, 24 Mar 2026 11:36:15 +0000 (14:36 +0300)
committerGitHub <noreply@github.com>
Tue, 24 Mar 2026 11:36:15 +0000 (11:36 +0000)
commit68c7fad757f3a99fca257d11ce61adb78128a66c
treef3c1c3154e027c4b916e4b3f5fe6e5baa22fd0c8
parent6d73bc226723ab0249c05b71c5f27ab42e126b41
gh-138580: Add sys.float_info.iec_60559 boolean flag (#138811)

This value indicating support the IEC 60559 floating-point standard (the
Annex F of C99).  If enabled, the float type characteristics matches the
IEC 60559 double format and exceptional cases for the math's functions
follow to the section F.10 of the C99 standard.

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Doc/library/math.rst
Doc/library/sys.rst
Doc/whatsnew/3.15.rst
Lib/test/test_sys.py
Misc/NEWS.d/next/Library/2025-09-12-07-30-13.gh-issue-138580.Qr_fSH.rst [new file with mode: 0644]
Objects/floatobject.c