Skip to content

Commit 287e6ee

Browse files
committed
gh-153144: Modify comments as requested in review
1 parent c9c51ad commit 287e6ee

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

Modules/mathmodule.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ is_error(double x, int raise_edom)
916916
C89 but for which HUGE_VAL is not an infinity.
917917
918918
For the majority of one-argument functions these rules are enough
919-
to ensure that Python's functions behave as specified in Annex F
919+
to ensure that Python's functions behave as specified in 'Annex F'
920920
of the C99 standard, with the 'invalid' and 'divide-by-zero'
921921
floating-point exceptions mapping to Python's ValueError and the
922922
'overflow' floating-point exception mapping to OverflowError.
@@ -1011,11 +1011,12 @@ math_1a(PyObject *arg, double (*func) (double), const char *err_msg)
10111011
The last rule is used to catch overflow on platforms which follow
10121012
C89 but for which HUGE_VAL is not an infinity.
10131013
1014-
For most two-argument functions (copysign, fmod, hypot) these rules
1015-
are enough to ensure that Python's functions behave as specified in
1016-
Annex F of the C99 standard, with the 'invalid' and 'divide-by-zero'
1017-
floating-point exceptions mapping to Python's ValueError and the
1018-
'overflow' floating-point exception mapping to OverflowError.
1014+
For most two-argument functions (copysign, fmod, hypot)
1015+
these rules are enough to ensure that Python's functions behave as
1016+
specified in 'Annex F' of the C99 standard, with the 'invalid' and
1017+
'divide-by-zero' floating-point exceptions mapping to Python's
1018+
ValueError and the 'overflow' floating-point exception mapping to
1019+
OverflowError.
10191020
*/
10201021

10211022
static PyObject *

0 commit comments

Comments
 (0)