Skip to content

Commit b063f59

Browse files
committed
Document Py_RETURN_NAN and Py_RETURN_INF
1 parent bfe5481 commit b063f59

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Doc/c-api/float.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,16 @@ Floating-Point Objects
7878
Return the minimum normalized positive float *DBL_MIN* as C :c:expr:`double`.
7979
8080
81+
.. c:macro:: Py_RETURN_NAN
82+
83+
Return :data:`math.nan` from a function.
84+
85+
86+
.. c:macro:: Py_RETURN_INF
87+
88+
Return :data:`math.inf` from a function.
89+
90+
8191
Pack and Unpack functions
8292
-------------------------
8393

0 commit comments

Comments
 (0)