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

Skip to content

Commit 32b0f02

Browse files
committed
#17363: fix arguments in PyState_AddModule and PyState_RemoveModule docs.
1 parent e1857d9 commit 32b0f02

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/c-api/module.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,15 @@ There are only a few functions special to module objects.
122122
:c:func:`PyState_AddModule` beforehand. In case the corresponding module object is not
123123
found or has not been attached to the interpreter state yet, it returns NULL.
124124
125-
.. c:function:: int PyState_AddModule(PyModuleDef *def, PyObject *module)
125+
.. c:function:: int PyState_AddModule(PyObject *module, PyModuleDef *def)
126126
127127
Attaches the module object passed to the function to the interpreter state. This allows
128128
the module object to be accessible via
129129
:c:func:`PyState_FindModule`.
130130
131131
.. versionadded:: 3.3
132132
133-
.. c:function:: int PyState_RemoveModule(PyModuleDef *def, PyObject *module)
133+
.. c:function:: int PyState_RemoveModule(PyModuleDef *def)
134134
135135
Removes the module object created from *def* from the interpreter state.
136136

0 commit comments

Comments
 (0)