STINNER Victor <vstin...@python.org> added the comment:
Statistics on C extension modules using the old API (PyModule_Create) / new API (PyModuleDef_Init): * 3.5: 84 / 24 (22%), total: 108 * 3.6: 87 / 25 (22%), total: 112 (+4) * 3.7 : 89 / 26 (23%), total: 115 (+3) * 3.8: 91 / 27 (23%), total: 118 (+3) * 3.9: 68 / 52 (43%), total: 120 (+2) * master: 42 / 76 (64%), total: 118 (-2) Before Python 3.8, it doesn't evolve much. Between 3.8 and 3.9, 25 extensions have been ported to the new API. Between 3.9 and master, 24 more extensions have been ported. Nice work so far! I didn't check if these extensions use a module state or if they still use some kind of global shared state such as static types. I just used a dummy grep: grep -E '\<PyModule_Create\>' $(find Modules/ -name "*.c")|wc -l grep -E '\<PyModuleDef_Init\>' $(find Modules/ -name "*.c")|wc -l Anyway, it's going in the right direction! ---------- _______________________________________ 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