gh-145633: Allow PyFloat_Pack8 & PyFloat_UnPack* to fail in future CPython versions (GH-153440)
(cherry picked from commit
9324f84b0f5722d165456b5858a683a2c82eefd2)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Pack a C double as the IEEE 754 binary64 double precision format.
- .. impl-detail::
- This function always succeeds in CPython.
-
Unpack functions
^^^^^^^^^^^^^^^^
:c:func:`PyErr_Occurred` is true (and an exception is set, most likely
:exc:`OverflowError`).
-.. impl-detail::
- These functions always succeed in CPython.
-
.. c:function:: double PyFloat_Unpack2(const char *p, int le)
Unpack the IEEE 754 binary16 half-precision format as a C double.
--- /dev/null
+:c:func:`PyFloat_Pack8` and ``PyFloat_Unpack*`` functions are no longer
+guaranteed to always succeed on CPython.