]> granicus.if.org Git - python/commit
bpo-34170: Add _PyCoreConfig.isolated (GH-8417)
authorVictor Stinner <vstinner@redhat.com>
Tue, 24 Jul 2018 11:55:48 +0000 (13:55 +0200)
committerGitHub <noreply@github.com>
Tue, 24 Jul 2018 11:55:48 +0000 (13:55 +0200)
commitd19d8d5279f156bc8f6736b5f16f069879b9519b
treedc3c2561371a0be4410172fe4270a37ab7c76ba6
parentac0b3c2f4d86fc056b833a4e6b9a380741244a63
bpo-34170: Add _PyCoreConfig.isolated (GH-8417)

* _PyCoreConfig: add isolated and site_import attributes
* Replace Py_IgnoreEnvironment with config->ignore_environment when
  reading the current configuration
* _PyCoreConfig_Read() now sets ignore_environment, utf8_mode,
  isolated and site_import from Py_IgnoreEnvironment, Py_UTF8Mode,
  Py_IsolatedFlag and Py_NoSiteFlag
* _Py_InitializeCore() now sets Py_xxx flags from the configuration
* pymain_read_conf() now uses _PyCoreConfig_Copy() to save/restore
  the configuration.
* Rename _disable_importlib of _PyCoreConfig to _install_importlib
* _PyCoreConfig_SetGlobalConfig() now also set
  Py_HashRandomizationFlag
* Replace !Py_NoSiteFlag with core_config->site_import
Include/internal/pystate.h
Include/pylifecycle.h
Include/pystate.h
Modules/main.c
PC/getpathp.c
Python/pathconfig.c
Python/pylifecycle.c