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
base: main
Are you sure you want to change the base?
Changes from 1 commit
503fd4a
c9c51ad
287e6ee
cbe759a
91257f2
25ec8e2
43f7398
5b6d005
ead2720
d546e81
f4ed052
82448e1
288fb8b
be0ed87
b991892
72842e1
11c56c4
6a92490
6a48f02
8594452
527afd1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -1149,11 +1149,14 @@ FUNC1(atan, atan, 0, | |||||||
| "atan($module, x, /)\n--\n\n" | ||||||||
| "Return the arc tangent (measured in radians) of x.\n\n" | ||||||||
| "The result is between -pi/2 and pi/2.") | ||||||||
| FUNC2NE(atan2, atan2, // gh-153144: Ignore atan2() errno on purpose. | ||||||||
| /* gh-153144: Ignore atan2 and atan2pi errno on purpose since it can optionally | ||||||||
|
hpkfft marked this conversation as resolved.
|
||||||||
| * be EDOM, which we should ignore, or ERANGE on underflow, which is | ||||||||
| * silent on Python. Overflow is not possible. */ | ||||||||
|
Comment on lines
+1154
to
+1156
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @vstinner asked for the "ignore errno on purpose" part of this comment on August 14: #153148 (comment) |
||||||||
| FUNC2NE(atan2, atan2, | ||||||||
|
hpkfft marked this conversation as resolved.
|
||||||||
| "atan2($module, y, x, /)\n--\n\n" | ||||||||
| "Return the arc tangent (measured in radians) of y/x.\n\n" | ||||||||
| "Unlike atan(y/x), the signs of both x and y are considered.") | ||||||||
| FUNC2NE(atan2pi, m_atan2pi, // gh-153144: Ignore atan2pi() errno on purpose. | ||||||||
| FUNC2NE(atan2pi, m_atan2pi, | ||||||||
| "atan2pi($module, y, x, /)\n--\n\n" | ||||||||
| "Return the arc tangent (measured in half-turns) of y/x.\n\n" | ||||||||
| "Unlike atanpi(y/x), the signs of both x and y are considered.") | ||||||||
|
|
||||||||
Uh oh!
There was an error while loading. Please reload this page.