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

project goals: PEP 0554 sub interpreters #3

Closed
pmp-p opened this issue Jul 14, 2019 · 1 comment
Closed

project goals: PEP 0554 sub interpreters #3

pmp-p opened this issue Jul 14, 2019 · 1 comment

Comments

@pmp-p
Copy link

pmp-p commented Jul 14, 2019

Hi, i don't see anything about sub-interpreters in the readme, i know there's no C api for it (yet) and it's still a draft https://www.python.org/dev/peps/pep-0554/

But how would it integrate with the project, and is it planned to integrate anything equivalent from the start ?
I can think of :

  • switching context.
  • control and access right of current and other interpreters ( case of a supervisor ).
  • getting usefull info at runtime e.g.: is my C module already used in another sub interpreter already ?
@antocuni
Copy link
Collaborator

Good catch. Improving support for sub-interpreters is not one of the first goals, but designing an API which makes it easier to do it in the future definitely is: that's one of the possible usages of the ctx context argument, which will be passed to all the API calls. I hope 1be000f clarifies that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants