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: Add _Py_InitializeFromConfig() #8454

Merged
merged 1 commit into from
Jul 25, 2018
Merged

bpo-34170: Add _Py_InitializeFromConfig() #8454

merged 1 commit into from
Jul 25, 2018

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jul 25, 2018

  • If _Py_InitializeCore() is called twice, the second call now copies
    and apply (partially) the new configuration.
  • Rename _Py_CommandLineDetails to _PyCmdline
  • Move more code into pymain_init(). The core configuration created
    by Py_Main() is new destroyed before running Python to reduce the
    memory footprint.
  • _Py_InitializeCore() now returns the created interpreter.
    _Py_InitializeMainInterpreter() now expects an interpreter.
  • Remove _Py_InitializeEx_Private(): _freeze_importlib now uses
    _Py_InitializeFromConfig()
  • _PyCoreConfig_InitPathConfig() now only computes the path
    configuration if needed.

https://bugs.python.org/issue34170

* If _Py_InitializeCore() is called twice, the second call now copies
  and apply (partially) the new configuration.
* Rename _Py_CommandLineDetails to _PyCmdline
* Move more code into pymain_init(). The core configuration created
  by Py_Main() is new destroyed before running Python to reduce the
  memory footprint.
* _Py_InitializeCore() now returns the created interpreter.
  _Py_InitializeMainInterpreter() now expects an interpreter.
* Remove _Py_InitializeEx_Private(): _freeze_importlib now uses
  _Py_InitializeFromConfig()
* _PyCoreConfig_InitPathConfig() now only computes the path
  configuration if needed.
@vstinner vstinner requested a review from a team July 25, 2018 00:01
@vstinner vstinner merged commit 1dc6e39 into python:master Jul 25, 2018
@vstinner vstinner deleted the init_from_config branch July 25, 2018 00:49
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