Kaydet (Commit) 634893d1 authored tarafından Brett Cannon's avatar Brett Cannon

Mention Py_RETURN_NONE when introducing the idiom of how to have a function

return Py_None.
üst ebd95222
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment