Skip to content
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

bpo-1635741: Convert _imp to multi-phase init #23378

Merged
merged 1 commit into from
Nov 18, 2020
Merged

bpo-1635741: Convert _imp to multi-phase init #23378

merged 1 commit into from
Nov 18, 2020

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Nov 18, 2020

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 fnuction has been
    renamed to finalize_modules() and moved to pylifecycle.c.

https://bugs.python.org/issue1635741

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 fnuction has been
  renamed to finalize_modules() and moved to pylifecycle.c.
@vstinner vstinner merged commit 6223071 into python:master Nov 18, 2020
@vstinner vstinner deleted the imp_multiphase branch November 18, 2020 22:18
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants