[WIP] bpo-35266: Add _PyPreConfig by vstinner · Pull Request #10575 · python/cpython (original) (raw)
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 andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation1 Commits3 Checks0 Files changed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
- Remove PyInterpreterState.core_config: _PyMainInterpreterConfig now
has a "_PyCoreConfig core_config" attribute. - Add _PyPreConfig structure which contains a _PyCoreConfig attriute
- Move program_name, program and pycache_prefix from _PyCoreConfig
into _PyPreConfig - Add program_name and program to _PyMainInterpreterConfig
- Py_Main() now uses a _PyPreConfig for early Python intiailization
- _PyPreConfig is destroyed when Python initialization is done
https://bugs.python.org/issue35266
- Remove PyInterpreterState.core_config: _PyMainInterpreterConfig now has a "_PyCoreConfig core_config" attribute.
- Add _PyPreConfig structure which contains a _PyCoreConfig attriute
- Move program_name, program and pycache_prefix from _PyCoreConfig into _PyPreConfig
- Add program_name and program to _PyMainInterpreterConfig
- Py_Main() now uses a _PyPreConfig for early Python intiailization
- _PyPreConfig is destroyed when Python initialization is done
vstinner changed the title
bpo-35266: Add _PyPreConfig [WIP] bpo-35266: Add _PyPreConfig
When I looked again at this issue, I'm not sure how what should be done, what is the proper design, what should stay after Python initialization, etc. I prefer to abandon this change and maybe retry to write it later.
I have a more advanced version in this branch of my fork: https://github.com/vstinner/cpython/commits/pre_config_next