diff options
author | Sergey B Kirpichev <skirpichev@gmail.com> | 2024-09-18 08:39:11 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-18 08:39:11 (GMT) |
commit | 8a284e189673582e262744618f293f9901a32e49 (patch) | |
tree | bacc735fda350b18f021cbd9e8c1b679529520c7 /Doc | |
parent | 81480e6edb34774d783d018d1f0e61ab5c3f0a9a (diff) | |
download | cpython-8a284e189673582e262744618f293f9901a32e49.zip cpython-8a284e189673582e262744618f293f9901a32e49.tar.gz cpython-8a284e189673582e262744618f293f9901a32e49.tar.bz2 |
gh-119771: Set errno on overflows in _Py_c_pow() (#120256)
Before we did this in complex_pow() and behavior of the public C API
function _Py_c_pow() was different from the pure-python pow().
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/c-api/complex.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/c-api/complex.rst b/Doc/c-api/complex.rst index 67d0c5f..16bd794 100644 --- a/Doc/c-api/complex.rst +++ b/Doc/c-api/complex.rst @@ -79,6 +79,8 @@ pointers. This is consistent throughout the API. If *num* is null and *exp* is not a positive real number, this method returns zero and sets :c:data:`errno` to :c:macro:`!EDOM`. + Set :c:data:`errno` to :c:macro:`!ERANGE` on overflows. + Complex Numbers as Python Objects ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |