Repository navigation
gh-153144: Avoid checking errno for atan2
#153148
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
hpkfft
wants to merge
21
commits into
python:main
Choose a base branch
from
hpkfft:atan2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
503fd4a
gh-153144: Avoid checking `errno` for `atan2`
hpkfft c9c51ad
gh-153144: Added NEWS entry
hpkfft 287e6ee
gh-153144: Modify comments as requested in review
hpkfft cbe759a
Merge branch 'main' into atan2
hpkfft 91257f2
Merge branch 'main' into atan2
hpkfft 25ec8e2
Add comments as requested in review
hpkfft 43f7398
Revert gh-146402 and update NEWS entry
hpkfft 5b6d005
Merge branch 'main' into atan2
skirpichev ead2720
Make NEWS entry a little shorter.
hpkfft d546e81
The copysign function does not need to check errno.
hpkfft f4ed052
Merge branch 'main' into atan2
hpkfft 82448e1
Add cmath tests and update NEWS entry
hpkfft 288fb8b
Merge branch 'main' into atan2
hpkfft be0ed87
Expand comments to explain why we ignore errno
hpkfft b991892
Merge branch 'main' into atan2
hpkfft 72842e1
Merge branch 'main' into atan2
hpkfft 11c56c4
Merge branch 'main' into atan2
hpkfft 6a92490
Change as requested in review
hpkfft 6a48f02
Merge branch 'main' into atan2
hpkfft 8594452
Add tests for math.atan2() and update NEWS
hpkfft 527afd1
Remove decorative `*` from comment in cmathmodule
hpkfft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
The copysign function does not need to check errno.
- Loading branch information
commit d546e8120b94782e22dbf604841c5e584c46a85e
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, the only remaining math_2()-type function is remainder()...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think
(fmod, hypot)in the comment above refers to the C math library functions.Unless I've missed it, Python does not use the C math library function
double remainder(double, double), so I don't think we should add it to this comment.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so. Before 53876d9, both fmod and hypot were using FUNC2 macro.
Yes, but m_remainder (name in style m_log and co, suggesting a workarounded libm's function) is just an implementation of Annex F remainder.
Perhaps, nowadays we could replace this function by standard library call: at least this works well for me locally. See previous attempt of removing legacy stuff: #101679
Edit: FYI, #158826.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting. But it seems sufficiently unrelated as to allow this PR to be merged without further tweaks to the comments.