]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.10] gh-85417: Clarify behaviour on branch cuts in cmath module (GH-102046) (#102275)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 26 Feb 2023 11:55:13 +0000 (03:55 -0800)
committerGitHub <noreply@github.com>
Sun, 26 Feb 2023 11:55:13 +0000 (11:55 +0000)
commit601c9db4550791125d7c3101c7028c49cc704e14
tree3dfa92a826366accffe9cfb521fe72dcea68b53a
parent972396143f9cb2478ab933a5ede39fa840d514bf
[3.10] gh-85417: Clarify behaviour on branch cuts in cmath module (GH-102046) (#102275)

gh-85417: Clarify behaviour on branch cuts in cmath module (GH-102046)

This PR updates the cmath module documentation to reflect the reality that Python is almost always (and as far as I can tell, that "almost" can be omitted) running on a machine whose C double supports signed zeros.

* Removes misleading references to functions being continuous from above / below / the left / the right at branch cuts
* Expands the note on branch cuts at the top of the module documentation to explain the double-sided sign-of-zero-based behaviour
(cherry picked from commit b513c46d998344dc07eb6d510782c2e23d2b859e)

Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
Doc/library/cmath.rst
Misc/NEWS.d/next/Documentation/2023-02-19-10-33-01.gh-issue-85417.kYO8u3.rst [new file with mode: 0644]