This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients christian.heimes, ncoghlan, vstinner
Date 2019-05-15.02:23:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.
Date User Action Args
2019-05-15 02:23:01vstinnersetrecipients: + vstinner, ncoghlan, christian.heimes
2019-05-15 02:23:01vstinnersetmessageid: <>
2019-05-15 02:23:01vstinnerlinkissue26122 messages
2019-05-15 02:23:01vstinnercreate