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-32030: Add pymain_get_global_config() #4735

Merged
merged 1 commit into from
Dec 6, 2017
Merged

bpo-32030: Add pymain_get_global_config() #4735

merged 1 commit into from
Dec 6, 2017

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Dec 6, 2017

  • Py_Main() now starts by reading Py_xxx configuration variables to
    only work on its own private structure, and then later writes back
    the configuration into these variables.
  • Replace Py_GETENV() with pymain_get_env_var() which ignores empty
    variables.
  • Add _PyCoreConfig.dump_refs
  • Add _PyCoreConfig.malloc_stats
  • _PyObject_DebugMallocStats() is now responsible to check if debug
    hooks are installed. The function returns 1 if stats were written,
    or 0 if the hooks are disabled. Mark _PyMem_PymallocEnabled() as
    static.

https://bugs.python.org/issue32030

* Py_Main() now starts by reading Py_xxx configuration variables to
  only work on its own private structure, and then later writes back
  the configuration into these variables.
* Replace Py_GETENV() with pymain_get_env_var() which ignores empty
  variables.
* Add _PyCoreConfig.dump_refs
* Add _PyCoreConfig.malloc_stats
* _PyObject_DebugMallocStats() is now responsible to check if debug
  hooks are installed. The function returns 1 if stats were written,
  or 0 if the hooks are disabled. Mark _PyMem_PymallocEnabled() as
  static.
@vstinner vstinner merged commit 6bf992a into python:master Dec 6, 2017
@vstinner vstinner deleted the pymain_get_global_config branch December 6, 2017 16:26
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