[issue35266] Add _PyPreConfig and rework _PyCoreConfig and _PyMainInterpreterConfig
STINNER Victor
report at bugs.python.org
Thu Nov 22 09:35:20 EST 2018
STINNER Victor <vstinner at redhat.com> added the comment:
Hum, my split is incomplete. From a high level point of view, the initialization should be done in these steps:
1) select memory allocator, config made of C char* (bytes) and int types
2) select encodings, add wchar_t* (Unicode) strings to the config
3) compute the "path configuration" (used to initialize importlib and sys.path)
4) apply the config to Python
Step (3) should be optional. Currently, the path configuration can be set in _PyCoreConfig to avoid the need "calculate" it (operation which access the filesystem).
Technically, we may have to use wchar_t* in (1), since Windows uses wmain() which gets argv as wchar_t** (and environment variables as wchar_t* as well).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35266>
_______________________________________
More information about the Python-bugs-list
mailing list