Skip to content

bpo-32030: Add pymain_get_global_config()#4735

Merged
vstinner merged 1 commit intopython:masterfrom
vstinner:pymain_get_global_config
Dec 6, 2017
Merged

bpo-32030: Add pymain_get_global_config()#4735
vstinner merged 1 commit intopython:masterfrom
vstinner:pymain_get_global_config

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