]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-119372: Recover inf's and zeros in _Py_c_quot (GH-119457)
authorSergey B Kirpichev <skirpichev@gmail.com>
Sat, 29 Jun 2024 08:00:48 +0000 (11:00 +0300)
committerGitHub <noreply@github.com>
Sat, 29 Jun 2024 08:00:48 +0000 (11:00 +0300)
commit2cb84b107ad136eafb6e3d69145b7bdaefcca879
treedf61067bf19b1f557b49db5c19e0d881774d02ef
parent0a1e8ff9c15675fdc4d07fa6c59f83808bf00798
gh-119372: Recover inf's and zeros in _Py_c_quot (GH-119457)

In some cases, previously computed as (nan+nanj), we could
recover meaningful component values in the result, see
e.g. the C11, Annex G.5.2, routine _Cdivd().
Lib/test/test_complex.py
Misc/NEWS.d/next/Core and Builtins/2024-05-22-12-49-03.gh-issue-119372.PXig1R.rst [new file with mode: 0644]
Objects/complexobject.c