[issue41941] Py_Initialize affects the console
STINNER Victor
report at bugs.python.org
Mon Oct 5 09:14:44 EDT 2020
STINNER Victor <vstinner at python.org> added the comment:
PyConfig_InitIsolatedConfig() reduces side effects on the process. For example, it doesn't set the LC_CTYPE locale and it doesn't change the standard streams (stdio).
config_init_stdio() is not called in an isolated configuration:
https://github.com/python/cpython/blob/dcc54215ac1eb4b6fab2a9ffe1abcdf3ac4bb77e/Python/initconfig.c#L1855
https://github.com/python/cpython/blob/dcc54215ac1eb4b6fab2a9ffe1abcdf3ac4bb77e/Python/initconfig.c#L1809-L1817
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41941>
_______________________________________
More information about the Python-bugs-list
mailing list