bpo-34170: Cleanup pymain_read_conf() by vstinner · Pull Request #8476 · python/cpython (original) (raw)
- _PyCoreConfig: Rename ignore_environment field to use_environment.
- _PyCoreConfig_Read(): if isolated is set, use_environment and
site_import are now always set to 0. - Inline pymain_free_raw() into pymain_free()
- Move config_init_warnoptions() call into pymain_read_conf_impl()
- _PyCoreConfig_Read(): don't replace values if they are already set:
faulthandler, pycache_prefix, home.
https://bugs.python.org/issue34170
- _PyCoreConfig: Rename ignore_environment field to use_environment.
- _PyCoreConfig_Read(): if isolated is set, use_environment and site_import are now always set to 0.
- Inline pymain_free_raw() into pymain_free()
- Move config_init_warnoptions() call into pymain_read_conf_impl()
- _PyCoreConfig_Read(): don't replace values if they are already set: faulthandler, pycache_prefix, home.
_PyCoreConfig_Read() initializes use_environment