https://github.com/python/cpython/commit/20f53df07d42c495a08c73a3d54b8dd9098a62f0
commit: 20f53df07d42c495a08c73a3d54b8dd9098a62f0
branch: main
author: Sergey B Kirpichev <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2025-11-12T11:50:44+02:00
summary:
gh-141370: document undefined behavior of Py_ABS() (GH-141439)
files:
M Doc/c-api/intro.rst
diff --git a/Doc/c-api/intro.rst b/Doc/c-api/intro.rst
index 6e1a9dcb35543b..c76cc2f70ecccf 100644
--- a/Doc/c-api/intro.rst
+++ b/Doc/c-api/intro.rst
@@ -121,6 +121,10 @@ complete listing.
Return the absolute value of ``x``.
+ If the result cannot be represented (for example, if ``x`` has
+ :c:macro:`!INT_MIN` value for :c:expr:`int` type), the behavior is
+ undefined.
+
.. versionadded:: 3.3
.. c:macro:: Py_ALWAYS_INLINE
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]