gh-101973: Fix parameter reference for PyModule_FromDefAndSpec (#101976)

This commit is contained in:
Oleg Iarygin 2023-02-17 12:43:07 +04:00 committed by GitHub
parent 984f8ab018
commit a3bb7fbe7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -388,7 +388,7 @@ objects dynamically. Note that both ``PyModule_FromDefAndSpec`` and
.. c:function:: PyObject * PyModule_FromDefAndSpec(PyModuleDef *def, PyObject *spec) .. c:function:: PyObject * PyModule_FromDefAndSpec(PyModuleDef *def, PyObject *spec)
Create a new module object, given the definition in *module* and the Create a new module object, given the definition in *def* and the
ModuleSpec *spec*. This behaves like :c:func:`PyModule_FromDefAndSpec2` ModuleSpec *spec*. This behaves like :c:func:`PyModule_FromDefAndSpec2`
with *module_api_version* set to :const:`PYTHON_API_VERSION`. with *module_api_version* set to :const:`PYTHON_API_VERSION`.
@ -396,7 +396,7 @@ objects dynamically. Note that both ``PyModule_FromDefAndSpec`` and
.. c:function:: PyObject * PyModule_FromDefAndSpec2(PyModuleDef *def, PyObject *spec, int module_api_version) .. c:function:: PyObject * PyModule_FromDefAndSpec2(PyModuleDef *def, PyObject *spec, int module_api_version)
Create a new module object, given the definition in *module* and the Create a new module object, given the definition in *def* and the
ModuleSpec *spec*, assuming the API version *module_api_version*. ModuleSpec *spec*, assuming the API version *module_api_version*.
If that version does not match the version of the running interpreter, If that version does not match the version of the running interpreter,
a :exc:`RuntimeWarning` is emitted. a :exc:`RuntimeWarning` is emitted.