mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
#17363: fix arguments in PyState_AddModule and PyState_RemoveModule docs.
This commit is contained in:
parent
e1857d999d
commit
32b0f02034
1 changed files with 2 additions and 2 deletions
|
@ -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
|
: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.
|
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
|
Attaches the module object passed to the function to the interpreter state. This allows
|
||||||
the module object to be accessible via
|
the module object to be accessible via
|
||||||
|
@ -130,7 +130,7 @@ There are only a few functions special to module objects.
|
||||||
|
|
||||||
.. versionadded:: 3.3
|
.. 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.
|
Removes the module object created from *def* from the interpreter state.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue