summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-03-06 00:59:25 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-03-06 00:59:25 (GMT)
commit648b5900d5ac25561ecb4c5fa9148134f6268cea (patch)
tree779f33bc856e6652f77ac04fa0bd1f766df4d1b5 /Doc/c-api
parentcf77da9fb5a0b23c92c5005b13944f680aa0f325 (diff)
parent32b0f020341c53453bd9c791e75a7627fa2fa7fe (diff)
downloadcpython-648b5900d5ac25561ecb4c5fa9148134f6268cea.zip
cpython-648b5900d5ac25561ecb4c5fa9148134f6268cea.tar.gz
cpython-648b5900d5ac25561ecb4c5fa9148134f6268cea.tar.bz2
#17363: merge with 3.3.
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/module.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/module.rst b/Doc/c-api/module.rst
index 3be7fe3..65ff8fa 100644
--- a/Doc/c-api/module.rst
+++ b/Doc/c-api/module.rst
@@ -122,7 +122,7 @@ There are only a few functions special to module objects.
:c:func:`PyState_AddModule` beforehand. In case the corresponding module object is not
found or has not been attached to the interpreter state yet, it returns NULL.
-.. c:function:: int PyState_AddModule(PyModuleDef *def, PyObject *module)
+.. c:function:: int PyState_AddModule(PyObject *module, PyModuleDef *def)
Attaches the module object passed to the function to the interpreter state. This allows
the module object to be accessible via
@@ -130,7 +130,7 @@ There are only a few functions special to module objects.
.. versionadded:: 3.3
-.. c:function:: int PyState_RemoveModule(PyModuleDef *def, PyObject *module)
+.. c:function:: int PyState_RemoveModule(PyModuleDef *def)
Removes the module object created from *def* from the interpreter state.