[issue45973] Not possible to clear PyImport_Inittab after PyImport_AppendInittab

2021-12-06 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-1 (fixed). -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue45973] Not possible to clear PyImport_Inittab after PyImport_AppendInittab

2021-12-06 Thread STINNER Victor
STINNER Victor added the comment: Currently, the global variable PyImport_Inittab is used. It should be made per-interpreter and I suggest to add something like PyConfig_AppendInittab() to the PyConfig API, so the configuration change would only impact a single interpreter. It would be possi

[issue45973] Not possible to clear PyImport_Inittab after PyImport_AppendInittab

2021-12-03 Thread Daniel
New submission from Daniel : Hello, When embedding Python into a C application and not using Py_RunMain it is not possible to remove a module added to PyImport_Inittab even if the interpreter is finalized and a new is created. One reason for not using Py_RunMain is to use python as a subproc