summaryrefslogtreecommitdiff
path: root/Doc/ext/extending.tex
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2004-06-27 04:28:00 +0000
committerBrett Cannon <bcannon@gmail.com>2004-06-27 04:28:00 +0000
commit342421544e964949afb3d4c26ae00516c6de6129 (patch)
tree0b008e7a90378fe9a85178fed9d2ba29897fffee /Doc/ext/extending.tex
parentc3c4d9cab73a6d5ed9cd11b9161b0543201c5670 (diff)
downloadcpython-342421544e964949afb3d4c26ae00516c6de6129.tar.gz
Mention Py_RETURN_NONE when introducing the idiom of how to have a function
return Py_None.
Diffstat (limited to 'Doc/ext/extending.tex')
-rw-r--r--Doc/ext/extending.tex3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/ext/extending.tex b/Doc/ext/extending.tex
index 57adc15b5c..c3d3ab00fd 100644
--- a/Doc/ext/extending.tex
+++ b/Doc/ext/extending.tex
@@ -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);