[Python-checkins] gh-101973: Fix parameter reference for PyModule_FromDefAndSpec (GH-101976)

miss-islington webhook-mailer at python.org
Fri Feb 17 03:51:31 EST 2023


https://github.com/python/cpython/commit/f4f5dd5c391d8b632f4f88d781ca73788d210755
commit: f4f5dd5c391d8b632f4f88d781ca73788d210755
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2023-02-17T00:51:24-08:00
summary:

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

(cherry picked from commit a3bb7fbe7eecfae6bf7b2f0912f9b2b12fac8db1)

Co-authored-by: Oleg Iarygin <oleg at arhadthedev.net>

files:
M Doc/c-api/module.rst

diff --git a/Doc/c-api/module.rst b/Doc/c-api/module.rst
index e2ba157b32c7..c0351c8a6c72 100644
--- a/Doc/c-api/module.rst
+++ b/Doc/c-api/module.rst
@@ -388,7 +388,7 @@ objects dynamically. Note that both ``PyModule_FromDefAndSpec`` and
 
 .. 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`
    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)
 
-   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*.
    If that version does not match the version of the running interpreter,
    a :exc:`RuntimeWarning` is emitted.



More information about the Python-checkins mailing list