Skip to content

Commit b883ad1

Browse files
[3.14] pythongh-141370: document undefined behavior of Py_ABS() (pythonGH-141439) (pythonGH-141454)
(cherry picked from commit 20f53df) Co-authored-by: Sergey B Kirpichev <[email protected]>
1 parent 604a5a6 commit b883ad1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/c-api/intro.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ complete listing.
121121
122122
Return the absolute value of ``x``.
123123

124+
If the result cannot be represented (for example, if ``x`` has
125+
:c:macro:`!INT_MIN` value for :c:expr:`int` type), the behavior is
126+
undefined.
127+
124128
.. versionadded:: 3.3
125129

126130
.. c:macro:: Py_ALWAYS_INLINE

0 commit comments

Comments
 (0)