Skip to content

Commit 2679d35

Browse files
committed
Apparently, Py_RETURN_INF() is a function-like macro.
1 parent b063f59 commit 2679d35

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Doc/c-api/float.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,10 @@ Floating-Point Objects
8383
Return :data:`math.nan` from a function.
8484
8585
86-
.. c:macro:: Py_RETURN_INF
86+
.. c:macro:: Py_RETURN_INF(sign)
8787
88-
Return :data:`math.inf` from a function.
88+
Return :data:`math.inf` or :data:`-math.inf <math.inf>` from a function,
89+
depending on the sign of *sign*.
8990
9091
9192
Pack and Unpack functions

0 commit comments

Comments
 (0)