]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-130317: Fix test_pack_unpack_roundtrip() and add docs (#133204)
authorSergey B Kirpichev <skirpichev@gmail.com>
Thu, 1 May 2025 14:20:36 +0000 (17:20 +0300)
committerGitHub <noreply@github.com>
Thu, 1 May 2025 14:20:36 +0000 (16:20 +0200)
commitad2f0884b16e6af4087ba078d2255d4c81ae8e96
tree8443e1860fe63bc419d47a620b577ca87ab3fbec
parented039b801d66736f22508c71b258b8ace0c15ef4
gh-130317: Fix test_pack_unpack_roundtrip() and add docs (#133204)

* Skip sNaN's testing in 32-bit mode.
* Drop float_set_snan() helper.
* Use memcpy() workaround for sNaN's in PyFloat_Unpack4().
* Document, that sNaN's may not be preserved by PyFloat_Pack/Unpack API.
Doc/c-api/float.rst
Lib/test/test_capi/test_float.py
Modules/_testcapi/clinic/float.c.h
Modules/_testcapi/float.c
Objects/floatobject.c