From: Sergey B Kirpichev Date: Wed, 12 Nov 2025 09:50:44 +0000 (+0300) Subject: gh-141370: document undefined behavior of Py_ABS() (GH-141439) X-Git-Tag: v3.15.0a2~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20f53df07d42c495a08c73a3d54b8dd9098a62f0;p=thirdparty%2FPython%2Fcpython.git gh-141370: document undefined behavior of Py_ABS() (GH-141439) --- diff --git a/Doc/c-api/intro.rst b/Doc/c-api/intro.rst index 6e1a9dcb3554..c76cc2f70ecc 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