Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-85417: Clarify behaviour on branch cuts in cmath module#102046
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
gh-85417: Clarify behaviour on branch cuts in cmath module#102046
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
skirpichev commentedFeb 19, 2023
#102047 is more or less same, but less verbose. |
Uh oh!
There was an error while loading.Please reload this page.
…hon#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
* main: (60 commits)pythongh-102056: Fix a few bugs in error handling of exception printing code (python#102078)pythongh-102011: use sys.exception() instead of sys.exc_info() in docs where possible (python#102012)pythongh-101566: Sync with zipp 3.14. (pythonGH-102018)pythonGH-99818: improve the documentation for zipfile.Path and Traversable (pythonGH-101589)pythongh-88233: zipfile: handle extras after a zip64 extra (pythonGH-96161)pythongh-101981: Apply HOMEBREW related environment variables (pythongh-102074)pythongh-101907: Stop using `_Py_OPCODE` and `_Py_OPARG` macros (pythonGH-101912)pythongh-101819: Adapt _io types to heap types, batch 1 (pythonGH-101949)pythongh-101981: Build macOS as recommended by the devguide (pythonGH-102070)pythongh-97786: Fix compiler warnings in pytime.c (python#101826)pythongh-101578: Amend PyErr_{Set,Get}RaisedException docs (python#101962) Misc improvements to the float tutorial (pythonGH-102052)pythongh-85417: Clarify behaviour on branch cuts in cmath module (python#102046)pythongh-100425: Update tutorial docs related to sum() accuracy (FH-101854) Add missing 'is' to `cmath.log()` docstring (python#102049)pythongh-100210: Correct the comment link for unescaping HTML (python#100212)pythongh-97930: Also include subdirectory in makefile. (python#102030)pythongh-99735: Use required=True in argparse subparsers example (python#100927) Fix incorrectly documented attribute in csv docs (python#101250)pythonGH-84783: Make the slice object hashable (pythonGH-101264) ...
* main: (225 commits)pythongh-102056: Fix a few bugs in error handling of exception printing code (python#102078)pythongh-102011: use sys.exception() instead of sys.exc_info() in docs where possible (python#102012)pythongh-101566: Sync with zipp 3.14. (pythonGH-102018)pythonGH-99818: improve the documentation for zipfile.Path and Traversable (pythonGH-101589)pythongh-88233: zipfile: handle extras after a zip64 extra (pythonGH-96161)pythongh-101981: Apply HOMEBREW related environment variables (pythongh-102074)pythongh-101907: Stop using `_Py_OPCODE` and `_Py_OPARG` macros (pythonGH-101912)pythongh-101819: Adapt _io types to heap types, batch 1 (pythonGH-101949)pythongh-101981: Build macOS as recommended by the devguide (pythonGH-102070)pythongh-97786: Fix compiler warnings in pytime.c (python#101826)pythongh-101578: Amend PyErr_{Set,Get}RaisedException docs (python#101962) Misc improvements to the float tutorial (pythonGH-102052)pythongh-85417: Clarify behaviour on branch cuts in cmath module (python#102046)pythongh-100425: Update tutorial docs related to sum() accuracy (FH-101854) Add missing 'is' to `cmath.log()` docstring (python#102049)pythongh-100210: Correct the comment link for unescaping HTML (python#100212)pythongh-97930: Also include subdirectory in makefile. (python#102030)pythongh-99735: Use required=True in argparse subparsers example (python#100927) Fix incorrectly documented attribute in csv docs (python#101250)pythonGH-84783: Make the slice object hashable (pythonGH-101264) ...
miss-islington commentedFeb 26, 2023
Thanks@mdickinson for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10. |
miss-islington commentedFeb 26, 2023
Thanks@mdickinson for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11. |
…honGH-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 commitb513c46)Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
bedevere-bot commentedFeb 26, 2023
GH-102275 is a backport of this pull request to the3.10 branch. |
bedevere-bot commentedFeb 26, 2023
GH-102276 is a backport of this pull request to the3.11 branch. |
…honGH-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 commitb513c46)Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
…-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 commitb513c46)Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
…-102046) (#102276)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 commitb513c46)Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
Uh oh!
There was an error while loading.Please reload this page.
This PR updates the
cmathmodule 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.Closes#85417