mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
bpo-45019: Do some cleanup related to frozen modules. (gh-28319)
There are a few things I missed in gh-27980. This is a follow-up that will make subsequent PRs cleaner. It includes fixes to tests and tools that reference the frozen modules. https://bugs.python.org/issue45019
This commit is contained in:
parent
1fc41ae870
commit
a2d8c4b81b
12 changed files with 342 additions and 140 deletions
20
Python/clinic/import.c.h
generated
20
Python/clinic/import.c.h
generated
|
|
@ -297,6 +297,24 @@ exit:
|
|||
return return_value;
|
||||
}
|
||||
|
||||
PyDoc_STRVAR(_imp__frozen_module_names__doc__,
|
||||
"_frozen_module_names($module, /)\n"
|
||||
"--\n"
|
||||
"\n"
|
||||
"Returns the list of available frozen modules.");
|
||||
|
||||
#define _IMP__FROZEN_MODULE_NAMES_METHODDEF \
|
||||
{"_frozen_module_names", (PyCFunction)_imp__frozen_module_names, METH_NOARGS, _imp__frozen_module_names__doc__},
|
||||
|
||||
static PyObject *
|
||||
_imp__frozen_module_names_impl(PyObject *module);
|
||||
|
||||
static PyObject *
|
||||
_imp__frozen_module_names(PyObject *module, PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
return _imp__frozen_module_names_impl(module);
|
||||
}
|
||||
|
||||
#if defined(HAVE_DYNAMIC_LOADING)
|
||||
|
||||
PyDoc_STRVAR(_imp_create_dynamic__doc__,
|
||||
|
|
@ -449,4 +467,4 @@ exit:
|
|||
#ifndef _IMP_EXEC_DYNAMIC_METHODDEF
|
||||
#define _IMP_EXEC_DYNAMIC_METHODDEF
|
||||
#endif /* !defined(_IMP_EXEC_DYNAMIC_METHODDEF) */
|
||||
/*[clinic end generated code: output=7c31c433af88af6b input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=0ab3fa7c5808bba4 input=a9049054013a1b77]*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue