Multi-phase init is also the prerequisite for sub-interpreter support: C extension modules that use single-phase init can't be imported into sub-interpreters created with concurrent.interpreters. The import fails with:
ImportError: module <name> does not support loading in subinterpreters
CPython has recommended multi-phase initialization over legacy single-phase initialization (PyModule_Create) since Python 3.5.
Multi-phase init is also the prerequisite for sub-interpreter support: C extension modules that use single-phase init can't be imported into sub-interpreters created with concurrent.interpreters. The import fails with:
Thanks,
Jin