diff options
author | Brett Cannon <bcannon@gmail.com> | 2004-06-27 04:28:00 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2004-06-27 04:28:00 (GMT) |
commit | 634893d1a38e5ffec3a86f32d80e7d986108d8ce (patch) | |
tree | 1bcc2f98ddd825695286a5eb6f8a909286519dac /Doc | |
parent | ebd95222bf732f78b3a443d57d00174fbee8904e (diff) | |
download | cpython-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.tex | 3 |
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); |