https://github.com/python/cpython/commit/c317cf51f18e8265c12cf3bfcf7080710037e0ae commit: c317cf51f18e8265c12cf3bfcf7080710037e0ae branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: serhiy-storchaka <[email protected]> date: 2025-11-12T09:57:08Z summary:
[3.13] gh-141370: document undefined behavior of Py_ABS() (GH-141439) (GH-141455) (cherry picked from commit 20f53df07d42c495a08c73a3d54b8dd9098a62f0) Co-authored-by: Sergey B Kirpichev <[email protected]> files: M Doc/c-api/intro.rst diff --git a/Doc/c-api/intro.rst b/Doc/c-api/intro.rst index 22ad080828bca3..bb790de11c3521 100644 --- a/Doc/c-api/intro.rst +++ b/Doc/c-api/intro.rst @@ -133,6 +133,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]
