diff --git a/Doc/c-api/module.rst b/Doc/c-api/module.rst index 26c4384..2a02e50 100644 --- a/Doc/c-api/module.rst +++ b/Doc/c-api/module.rst @@ -124,10 +124,14 @@ There are only a few functions special to module objects. .. c:function:: PyObject* PyState_FindModule(PyModuleDef *def) - Returns the module object that was created from *def* for the current interpreter. - This method requires that the module object has been attached to the interpreter state with - :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. + Returns the module object that was created from *def* for the current + interpreter. This method requires that the module object has been attached to + the interpreter state with :c:func:`PyState_AddModule` beforehand. When + Python imports a module, it calls :c:func:`PyState_AddModule`, so an + extension module does not have to call it explicitly. + + 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(PyObject *module, PyModuleDef *def)