New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add _Py_PreInitialize() function #80482
Comments
Follow-up of bpo-36142, add _Py_PreInitialize() function to "pre-initialize" Python:
Py_Initialize() should also be modified to no longer coerce the C locale or enable the UTF-8 Mode: See also: |
In term of API, we get something like:
_PyInitError err = _Py_PreInitializeFromPreConfig(&preconfig);
if (_Py_INIT_FAILED(err)) {
_Py_ExitInitError(err);
}
err = _Py_InitializeFromConfig(&config);
if (_Py_INIT_FAILED(err)) {
_Py_ExitInitError(err);
}
Py_Finalize();
|
Note for myself: is there a problem between the priority of PYTHONHOME env var and pybuilddir.txt configuration file? |
Note for myself: PYTHONDEVMODE=1, PreConfig isolated=1, CoreConfig isolated=0: is the dev mode enabled or not? IMHO it should not. Maybe add a specific unit test? |
The feature has been implemented, I close the issue. The work is continued in other issues. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: