]> granicus.if.org Git - python/commitdiff
Mention Py_RETURN_NONE when introducing the idiom of how to have a function
authorBrett Cannon <bcannon@gmail.com>
Sun, 27 Jun 2004 04:28:00 +0000 (04:28 +0000)
committerBrett Cannon <bcannon@gmail.com>
Sun, 27 Jun 2004 04:28:00 +0000 (04:28 +0000)
return Py_None.

Doc/ext/extending.tex

index 57adc15b5c689588d211b0832012ca5062e54930..c3d3ab00fd99173aa708d2941e6c251335815920 100644 (file)
@@ -290,7 +290,8 @@ are objects on the heap in Python!)
 
 If you have a C function that returns no useful argument (a function
 returning \ctype{void}), the corresponding Python function must return
-\code{None}.   You need this idiom to do so:
+\code{None}.   You need this idiom to do so (which is implemented by the
+\csimplemacro{Py_RETURN_NONE} macro):
 
 \begin{verbatim}
     Py_INCREF(Py_None);