-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
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
gh-76785: Add PyInterpreterConfig Helpers #117170
gh-76785: Add PyInterpreterConfig Helpers #117170
Conversation
|
|
I'm taking care of the refleaks. |
These helpers make it easier to customize and inspect the config used to initialize interpreters. This is especially valuable in our tests. I found inspiration from the PyConfig API for the PyInterpreterConfig dict conversion stuff. As part of this PR I've also added a bunch of tests.
…-117491) This is a follow-up to pythongh-117170 and pythongh-117485.
These helpers make it easier to customize and inspect the config used to initialize interpreters. This is especially helpful in our tests. I found inspiration from the
PyConfig
API for thePyInterpreterConfig
dict conversion stuff. One motivation is that, later, we may end up exposing the config via the PEP 734 module.As part of this PR I've also added a bunch of tests.