diff options
author | Sergey B Kirpichev <skirpichev@gmail.com> | 2024-11-01 22:04:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-01 22:04:31 (GMT) |
commit | 8477951a1c460ff9b7dc7c54e7bf9b66b1722459 (patch) | |
tree | 56f840c81726ce48b4a99f0ee4eb358ccef0f38f /Doc | |
parent | 28b148fb32e4548b461137d18d1ab6d366395d36 (diff) | |
download | cpython-8477951a1c460ff9b7dc7c54e7bf9b66b1722459.zip cpython-8477951a1c460ff9b7dc7c54e7bf9b66b1722459.tar.gz cpython-8477951a1c460ff9b7dc7c54e7bf9b66b1722459.tar.bz2 |
gh-120026: soft deprecate Py_HUGE_VAL macro (#120027)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/c-api/conversion.rst | 2 | ||||
-rw-r--r-- | Doc/whatsnew/3.14.rst | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Doc/c-api/conversion.rst b/Doc/c-api/conversion.rst index 4aaf3905..c92ef4c 100644 --- a/Doc/c-api/conversion.rst +++ b/Doc/c-api/conversion.rst @@ -105,7 +105,7 @@ The following functions provide locale-independent string to number conversions. If ``s`` represents a value that is too large to store in a float (for example, ``"1e500"`` is such a string on many platforms) then - if ``overflow_exception`` is ``NULL`` return ``Py_HUGE_VAL`` (with + if ``overflow_exception`` is ``NULL`` return ``Py_INFINITY`` (with an appropriate sign) and don't set any exception. Otherwise, ``overflow_exception`` must point to a Python exception object; raise that exception and return ``-1.0``. In both cases, set diff --git a/Doc/whatsnew/3.14.rst b/Doc/whatsnew/3.14.rst index db32be8..21bc289 100644 --- a/Doc/whatsnew/3.14.rst +++ b/Doc/whatsnew/3.14.rst @@ -812,6 +812,10 @@ Porting to Python 3.14 Deprecated ---------- +* The :c:macro:`!Py_HUGE_VAL` macro is :term:`soft deprecated`, + use :c:macro:`!Py_INFINITY` instead. + (Contributed by Sergey B Kirpichev in :gh:`120026`.) + * Macros :c:macro:`!Py_IS_NAN`, :c:macro:`!Py_IS_INFINITY` and :c:macro:`!Py_IS_FINITE` are :term:`soft deprecated`, use instead :c:macro:`!isnan`, :c:macro:`!isinf` and |