diff options
author | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2024-07-19 12:21:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-19 12:21:56 (GMT) |
commit | 22c9d9c1fcc3bb6186524330b169eda6df450f1b (patch) | |
tree | 55a3c07ee41c30764f35b97516b37e5eeae3ab08 /Doc/c-api/module.rst | |
parent | 40855f3ab80ced9950c725b710f507c0e903b70a (diff) | |
download | cpython-22c9d9c1fcc3bb6186524330b169eda6df450f1b.zip cpython-22c9d9c1fcc3bb6186524330b169eda6df450f1b.tar.gz cpython-22c9d9c1fcc3bb6186524330b169eda6df450f1b.tar.bz2 |
GH-121970: Rewrite the C-API annotations extension (#121985)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Diffstat (limited to 'Doc/c-api/module.rst')
-rw-r--r-- | Doc/c-api/module.rst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/c-api/module.rst b/Doc/c-api/module.rst index 8a15a5e..2b68907 100644 --- a/Doc/c-api/module.rst +++ b/Doc/c-api/module.rst @@ -342,7 +342,8 @@ The available slot types are: The *value* pointer of this slot must point to a function of the signature: .. c:function:: PyObject* create_module(PyObject *spec, PyModuleDef *def) - :noindex: + :no-index-entry: + :no-contents-entry: The function receives a :py:class:`~importlib.machinery.ModuleSpec` instance, as defined in :PEP:`451`, and the module definition. @@ -377,7 +378,8 @@ The available slot types are: The signature of the function is: .. c:function:: int exec_module(PyObject* module) - :noindex: + :no-index-entry: + :no-contents-entry: If multiple ``Py_mod_exec`` slots are specified, they are processed in the order they appear in the *m_slots* array. |