Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-34170: _PyCoreConfig_Read() leaves Py_IsolatedFlag unchanged #8361

Merged
merged 2 commits into from
Jul 21, 2018
Merged

bpo-34170: _PyCoreConfig_Read() leaves Py_IsolatedFlag unchanged #8361

merged 2 commits into from
Jul 21, 2018

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jul 21, 2018

  • _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().

https://bugs.python.org/issue34170

* _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().
@vstinner vstinner merged commit f2626ce into python:master Jul 21, 2018
@vstinner vstinner deleted the pymain_isolated branch July 21, 2018 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants