mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
gh-107298: Fix numerous ref errors and typos in the C API docs (GH-108258)
This commit is contained in:
parent
c556f9a3c9
commit
d7202e4879
27 changed files with 103 additions and 92 deletions
|
|
@ -338,6 +338,7 @@ 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:
|
||||
|
||||
The function receives a :py:class:`~importlib.machinery.ModuleSpec`
|
||||
instance, as defined in :PEP:`451`, and the module definition.
|
||||
|
|
@ -372,6 +373,7 @@ The available slot types are:
|
|||
The signature of the function is:
|
||||
|
||||
.. c:function:: int exec_module(PyObject* module)
|
||||
:noindex:
|
||||
|
||||
If multiple ``Py_mod_exec`` slots are specified, they are processed in the
|
||||
order they appear in the *m_slots* array.
|
||||
|
|
@ -380,6 +382,8 @@ The available slot types are:
|
|||
|
||||
Specifies one of the following values:
|
||||
|
||||
.. c:namespace:: NULL
|
||||
|
||||
.. c:macro:: Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED
|
||||
|
||||
The module does not support being imported in subinterpreters.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue