diff options
author | Victor Stinner <vstinner@python.org> | 2020-11-18 23:18:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-18 23:18:29 +0100 |
commit | 622307142130d36a30644233441333247838af38 (patch) | |
tree | 57dec31fa3f5335182981be27d009fa09d0f83f3 /Include | |
parent | bpo-39573: Remove What's new entry for Py_SIZE() (GH-23375) (diff) | |
download | cpython-622307142130d36a30644233441333247838af38.tar.gz cpython-622307142130d36a30644233441333247838af38.tar.bz2 cpython-622307142130d36a30644233441333247838af38.zip |
bpo-1635741: Convert _imp to multi-phase init (GH-23378)
Convert the _imp extension module to the multi-phase initialization
API (PEP 489).
* Add _PyImport_BootstrapImp() which fix a bootstrap issue: import
the _imp module before importlib is initialized.
* Add create_builtin() sub-function, used by _imp_create_builtin().
* Initialize PyInterpreterState.import_func earlier, in
pycore_init_builtins().
* Remove references to _PyImport_Cleanup(). This function has been
renamed to finalize_modules() and moved to pylifecycle.c.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_import.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/internal/pycore_import.h b/Include/internal/pycore_import.h index 35a67abebac..fd9fa5ab23f 100644 --- a/Include/internal/pycore_import.h +++ b/Include/internal/pycore_import.h @@ -13,7 +13,7 @@ PyAPI_FUNC(PyObject *) _PyImport_FindBuiltin( #ifdef HAVE_FORK extern PyStatus _PyImport_ReInitLock(void); #endif -extern void _PyImport_Cleanup(PyThreadState *tstate); +extern PyObject* _PyImport_BootstrapImp(PyThreadState *tstate); #ifdef __cplusplus } |