diff options
author | Sergey B Kirpichev <skirpichev@gmail.com> | 2024-08-04 08:53:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-04 08:53:17 (GMT) |
commit | 3462a80d2cf37a63fe43f46f64a8c9823f84531d (patch) | |
tree | c6870dfefae1447a500abc164c4714f86ba17d79 /Misc/NEWS.d/next/Library/2024-07-17-09-23-03.gh-issue-121889.6se9jS.rst | |
parent | 151934a324789c58cca9c7bbd6753d735454df5a (diff) | |
download | cpython-3462a80d2cf37a63fe43f46f64a8c9823f84531d.zip cpython-3462a80d2cf37a63fe43f46f64a8c9823f84531d.tar.gz cpython-3462a80d2cf37a63fe43f46f64a8c9823f84531d.tar.bz2 |
gh-121889: cmath.acosh(0+nanj) returns nan+pi/2j (#121892)
As per C11 DR#471 (adjusted resolution accepted for C17), cacosh (0 +
iNaN) should return NaN ± i pi/2, not NaN + iNaN. This patch
fixes cmath's code to do same.
Diffstat (limited to 'Misc/NEWS.d/next/Library/2024-07-17-09-23-03.gh-issue-121889.6se9jS.rst')
-rw-r--r-- | Misc/NEWS.d/next/Library/2024-07-17-09-23-03.gh-issue-121889.6se9jS.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-07-17-09-23-03.gh-issue-121889.6se9jS.rst b/Misc/NEWS.d/next/Library/2024-07-17-09-23-03.gh-issue-121889.6se9jS.rst new file mode 100644 index 0000000..a7babe0 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-07-17-09-23-03.gh-issue-121889.6se9jS.rst @@ -0,0 +1 @@ +Adjusts ``cmath.acosh(complex('0+nanj'))`` for recent C standards. |