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 _PyPathConfig_Init() #4551

Merged
merged 3 commits into from
Nov 25, 2017
Merged

bpo-32030: Add _PyPathConfig_Init() #4551

merged 3 commits into from
Nov 25, 2017

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Nov 25, 2017

  • Add _PyPathConfig_Init()
  • PyPathConfig now uses dynamically allocated memory

https://bugs.python.org/issue32030

* Add _PyPathConfig_Init() and _PyPathConfig_Fini()
* Remove _Py_GetPathWithConfig()
* _PyPathConfig_Init() returns _PyInitError to allow to handle errors
  properly
* Add pathconfig_clear()
* Windows calculate_path_impl(): replace Py_FatalError() with
  _PyInitError
* Py_FinalizeEx() now calls _PyPathConfig_Fini() to release memory
* Fix _Py_InitializeMainInterpreter() regression: don't initialize
  path config if _disable_importlib is false
Do nothing if path_config was already initialized.
@vstinner vstinner merged commit 9316ee4 into python:master Nov 25, 2017
@vstinner vstinner deleted the program_name branch November 25, 2017 02:18
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