summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2004-06-27 04:28:00 (GMT)
committerBrett Cannon <bcannon@gmail.com>2004-06-27 04:28:00 (GMT)
commit634893d1a38e5ffec3a86f32d80e7d986108d8ce (patch)
tree1bcc2f98ddd825695286a5eb6f8a909286519dac /Doc
parentebd95222bf732f78b3a443d57d00174fbee8904e (diff)
downloadcpython-634893d1a38e5ffec3a86f32d80e7d986108d8ce.zip
cpython-634893d1a38e5ffec3a86f32d80e7d986108d8ce.tar.gz
cpython-634893d1a38e5ffec3a86f32d80e7d986108d8ce.tar.bz2
Mention Py_RETURN_NONE when introducing the idiom of how to have a function
return Py_None.
Diffstat (limited to 'Doc')
-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 57adc15..c3d3ab0 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);