8000 gh-134160: Use multi-phase init in documentation examples by neonene · Pull Request #134296 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-134160: Use multi-phase init in documentation examples #134296

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
May 26, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
keywdarg_module
  • Loading branch information
neonene authored May 21, 2025
commit aec6781a437b59d7130122d8432b38633b643f69
8 changes: 4 additions & 4 deletions Doc/extending/extending.rst
Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,8 @@ optionally followed by an import of the module::
initialization when removing entries from ``sys.modules`` or importing
compiled modules into multiple interpreters within a process
(or following a :c:func:`fork` without an intervening :c:func:`exec`).
At least, the :c:data:`Py_mod_multiple_interpreters` slot in the examples
should be ``Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED``.
In this case, at least the :c:data:`Py_mod_multiple_interpreters` slot
in the examples should be ``Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED``.

.. _compilation:

Expand Down Expand Up @@ -835,7 +835,7 @@ Philbrick (philbrick@hks.com)::
{0, NULL}
};

static struct PyModuleDef keywdargmodule = {
static struct PyModuleDef keywdarg_module = {
.m_base = PyModuleDef_HEAD_INIT,
.m_name = "keywdarg",
.m_size = 0,
Expand All @@ -846,7 +846,7 @@ Philbrick (philbrick@hks.com)::
PyMODINIT_FUNC
PyInit_keywdarg(void)
{
return PyModuleDef_Init(&keywdargmodule);
return PyModuleDef_Init(&keywdarg_module);
}


Expand Down
Loading
0