Skip to content

Commit 24c6eaa

Browse files
committed
Expand the explanation of Py_RETURN_NONE
1 parent 2fc1511 commit 24c6eaa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Doc/extending/first-extension-module.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,9 @@ Add such a function above the slots array::
327327
Py_RETURN_NONE;
328328
}
329329

330-
For now, we'll ignore the arguments, and use the :c:macro:`Py_RETURN_NONE`
331-
macro to properly ``return`` a Python :py:data:`None` object.
330+
For now, we ignore the arguments, and use the :c:macro:`Py_RETURN_NONE`
331+
macro, which expands to a ``return`` statement that properly returns
332+
a Python :py:data:`None` object.
332333

333334
Recompile your extension to make sure you don't have syntax errors.
334335
We haven't yet added ``spam_system`` to the module, so you might get a

0 commit comments

Comments
 (0)