Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 634893d

Browse files
committed
Mention Py_RETURN_NONE when introducing the idiom of how to have a function
return Py_None.
1 parent ebd9522 commit 634893d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Doc/ext/extending.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ \section{Back to the Example
290290

291291
If you have a C function that returns no useful argument (a function
292292
returning \ctype{void}), the corresponding Python function must return
293-
\code{None}. You need this idiom to do so:
293+
\code{None}. You need this idiom to do so (which is implemented by the
294+
\csimplemacro{Py_RETURN_NONE} macro):
294295

295296
\begin{verbatim}
296297
Py_INCREF(Py_None);

0 commit comments

Comments
 (0)