]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34170: _PyCoreConfig_Read() leaves Py_IsolatedFlag unchanged (GH-8361)
authorVictor Stinner <vstinner@redhat.com>
Sat, 21 Jul 2018 01:54:20 +0000 (03:54 +0200)
committerGitHub <noreply@github.com>
Sat, 21 Jul 2018 01:54:20 +0000 (03:54 +0200)
commitf2626ce6d4136f13a506e34ca8631ff2eab85fd9
tree4ff9ea663d47622f013a6f42585641585471af43
parentc884616390f990a58fe337376904530a48a0e833
bpo-34170: _PyCoreConfig_Read() leaves Py_IsolatedFlag unchanged (GH-8361)

* _PyCoreConfig_Read() no longer directly modifies Py_IsolatedFlag
  and Py_NoSiteFlag global configuration flags. The function now
  requires two pointers to integer, so these flags can be set later,
  to avoid side effets in _PyCoreConfig_Read().
* pathconfig_global_init() now leaves Py_IsolatedFlag and
  Py_NoSiteFlag unchanged.
* Fix pathconfig_global_init(): avoid computing the path
  configuration twice, use _PyCoreConfig_SetPathConfig().
Include/internal/pystate.h
Include/pylifecycle.h
Modules/main.c
PC/getpathp.c
Python/pathconfig.c
Python/pylifecycle.c