gh-141370: document undefined behavior of Py_ABS() (GH-141439)

This commit is contained in:
Sergey B Kirpichev 2025-11-12 12:50:44 +03:00 committed by GitHub
parent 6f988b08d1
commit 20f53df07d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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