Skip to content

Commit 37b3345

Browse files
skirpichevpicnixz
andauthored
Apply suggestions from code review
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent 4eb3669 commit 37b3345

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Doc/library/math.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,8 @@ Floating point manipulation functions
379379
.. function:: isnormal(x)
380380

381381
Return ``True`` if *x* is a normal floating-point number, that is a finite
382-
nonzero number, that is not a subnormal. Return ``False`` otherwise.
382+
nonzero number that is not a subnormal (see :func:`issubnormal`).
383+
Return ``False`` otherwise.
383384

384385
.. versionadded:: next
385386

Modules/mathmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3127,7 +3127,7 @@ static PyObject *
31273127
math_issubnormal_impl(PyObject *module, double x)
31283128
/*[clinic end generated code: output=4e76ac98ddcae761 input=9a20aba7107d0d95]*/
31293129
{
3130-
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 202311L
3130+
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L
31313131
return PyBool_FromLong((long)issubnormal(x));
31323132
#else
31333133
return PyBool_FromLong((long)(isfinite(x) && x && !isnormal(x)));

0 commit comments

Comments
 (0)