summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-10-11 19:00:25 (GMT)
committerGitHub <noreply@github.com>2021-10-11 19:00:25 (GMT)
commit2f92e2a590f0e5d2d3093549f5af9a4a1889eb5a (patch)
tree0eee8237edd81885e5e6c9e70686a0c84a44c2db /Doc/whatsnew
parent659812b451aefe1f0e5f83540296519a5fb8f313 (diff)
downloadcpython-2f92e2a590f0e5d2d3093549f5af9a4a1889eb5a.zip
cpython-2f92e2a590f0e5d2d3093549f5af9a4a1889eb5a.tar.gz
cpython-2f92e2a590f0e5d2d3093549f5af9a4a1889eb5a.tar.bz2
bpo-45412: Remove Py_SET_ERRNO_ON_MATH_ERROR() macro (GH-28820)
Remove the following math macros using the errno variable: * Py_ADJUST_ERANGE1() * Py_ADJUST_ERANGE2() * Py_OVERFLOWED() * Py_SET_ERANGE_IF_OVERFLOW() * Py_SET_ERRNO_ON_MATH_ERROR() Create pycore_pymath.h internal header file. Rename Py_ADJUST_ERANGE1() and Py_ADJUST_ERANGE2() to _Py_ADJUST_ERANGE1() and _Py_ADJUST_ERANGE2(), and convert these macros to static inline functions. Move the following macros to pycore_pymath.h: * _Py_IntegralTypeSigned() * _Py_IntegralTypeMax() * _Py_IntegralTypeMin() * _Py_InIntegralTypeRange()
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.11.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index e3650a6..2262d42 100644
--- a/Doc/whatsnew/3.11.rst
+++ b/Doc/whatsnew/3.11.rst
@@ -577,3 +577,13 @@ Removed
Use the new :c:type:`PyConfig` API of the :ref:`Python Initialization Configuration
<init-config>` instead (:pep:`587`).
(Contributed by Victor Stinner in :issue:`44113`.)
+
+* Remove the following math macros using the ``errno`` variable:
+
+ * ``Py_ADJUST_ERANGE1()``
+ * ``Py_ADJUST_ERANGE2()``
+ * ``Py_OVERFLOWED()``
+ * ``Py_SET_ERANGE_IF_OVERFLOW()``
+ * ``Py_SET_ERRNO_ON_MATH_ERROR()``
+
+ (Contributed by Victor Stinner in :issue:`45412`.)