]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-119771: Set errno on overflows in _Py_c_pow() (#120256)
authorSergey B Kirpichev <skirpichev@gmail.com>
Wed, 18 Sep 2024 08:39:11 +0000 (11:39 +0300)
committerGitHub <noreply@github.com>
Wed, 18 Sep 2024 08:39:11 +0000 (10:39 +0200)
commit8a284e189673582e262744618f293f9901a32e49
treebacc735fda350b18f021cbd9e8c1b679529520c7
parent81480e6edb34774d783d018d1f0e61ab5c3f0a9a
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().
Doc/c-api/complex.rst
Lib/test/test_capi/test_complex.py
Misc/NEWS.d/next/C API/2024-06-08-08-33-40.gh-issue-119771.Oip2dL.rst [new file with mode: 0644]
Objects/complexobject.c