[issue42260] [C API] Add PyInterpreterState_SetConfig(): reconfigure an interpreter

STINNER Victor report at bugs.python.org
Tue Nov 10 07:48:45 EST 2020


STINNER Victor <vstinner at python.org> added the comment:

> If we remove Modules/getpath.c, it will no longer be possible to automatically computes the path configuration when one of the following getter function will be called: (...)

It is not really an incompatible change according to the documentation:

"Note: The following functions should not be called before Py_Initialize(): Py_EncodeLocale(), Py_GetPath(), Py_GetPrefix(), Py_GetExecPrefix(), Py_GetProgramFullPath(), Py_GetPythonHome(), Py_GetProgramName() and PyEval_InitThreads().".

https://docs.python.org/dev/c-api/init.html

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42260>
_______________________________________


More information about the Python-bugs-list mailing list