STINNER Victor <[email protected]> added the comment:
This issue has been fixed in Python 3.8 with my work on refactoring Py_Main().
-E and -I command line options are now parsed, before reading PYTHONHASHSEED,
and -I imply -E as expected. Extract of the code:
if (config->isolated > 0) {
config->user_site_directory = 0;
}
if (config->use_environment) {
err = config_read_env_vars(config);
if (_Py_INIT_FAILED(err)) {
return err;
}
}
where config_read_env_vars() indirectly reads PYTHONHASHSEED.
I'm not sure if the issue is fixed in Python 3.7 or not. The code in Python 3.7
was in a bad state. It's getting better with Python 3.8 :-)
Note: the overall refactoring work is related to PEP 432 and PEP 587.
----------
components: +Interpreter Core
resolution: -> fixed
stage: test needed -> resolved
status: open -> closed
versions: +Python 3.8 -Python 3.5, Python 3.6
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue26122>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com