STINNER Victor <vstin...@python.org> added the comment:
About multi-phase init, it's nice to see the list of modules using the "legacy" init API getting smaller at each Python release! Example adding a log to PyModule_Create2(): +fprintf(stderr, "LEGACY MODULE INIT: %s\n", module->m_name); python3.6 -c pass: 16 modules using the legacy API LEGACY MODULE INIT: builtins LEGACY MODULE INIT: sys LEGACY MODULE INIT: _warnings LEGACY MODULE INIT: _imp LEGACY MODULE INIT: _warnings LEGACY MODULE INIT: _thread LEGACY MODULE INIT: _weakref LEGACY MODULE INIT: io LEGACY MODULE INIT: marshal LEGACY MODULE INIT: posix LEGACY MODULE INIT: zipimport LEGACY MODULE INIT: _codecs LEGACY MODULE INIT: _signal LEGACY MODULE INIT: errno LEGACY MODULE INIT: _stat python3.10 -c pass: only 2 modules using the legacy API LEGACY IMPORT: _thread LEGACY IMPORT: io 16 (Python 3.6) => 2 (Python 3.10) is a nice progress ;-) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue1635741> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com