Skip to content

Commit bb2bdcb

Browse files
skirpichevvstinnerStanFromIreland
authored
Apply suggestions from code review
Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
1 parent b1d30c3 commit bb2bdcb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Doc/c-api/float.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Floating-Point Objects
101101
102102
.. c:macro:: Py_HUGE_VAL
103103
104-
Equivalent to :c:macro:`Py_INFINITY`.
104+
Equivalent to :c:macro:`!INFINITY`.
105105
106106
.. deprecated:: 3.14
107107
The macro is :term:`soft deprecated`.
@@ -155,16 +155,16 @@ Floating-Point Objects
155155
return PyFloat_FromDouble(copysign(INFINITY, sign));
156156
157157
158-
.. c:macro:: Py_IS_FINITE
158+
.. c:macro:: Py_IS_FINITE(X)
159159
160-
Determines if the given floating-point number has finite value i.e. it is
161-
normal, subnormal or zero, but not infinite or NaN.
160+
Determines if the given floating-point number has finite value,
161+
that is, it is normal, subnormal or zero, but not infinite or NaN.
162162
163163
.. deprecated:: 3.14
164164
The macro is :term:`soft deprecated`. Use :c:macro:`!isfinite` instead.
165165
166166
167-
.. c:macro:: Py_IS_INFINITE
167+
.. c:macro:: Py_IS_INFINITY(X)
168168
169169
Determines if the given floating-point number is positive or negative
170170
infinity.
@@ -173,7 +173,7 @@ Floating-Point Objects
173173
The macro is :term:`soft deprecated`. Use :c:macro:`!isinf` instead.
174174
175175
176-
.. c:macro:: Py_IS_NAN
176+
.. c:macro:: Py_IS_NAN(X)
177177
178178
Determines if the given floating-point number is a not-a-number (NaN) value.
179179

0 commit comments

Comments
 (0)