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

Design interfaces needed for multiple sub interpreters using PyObjC #529

Open
ronaldoussoren opened this issue Feb 11, 2023 · 1 comment

Comments

@ronaldoussoren
Copy link
Owner

When having multiple sub interpreters that use PyObjC sub interpreter A could see Python objects that are created in sub interpreter B. Design a way to deal with this:

  • Converting from ObjC to Python should check the owning sub interpreter for the various OC_Python* classes and create a generic proxy when the owner doesn't match the current thread
  • Should have proxy registries per sub interpreter, not globally
  • ...
@ronaldoussoren
Copy link
Owner Author

Ideally this would also have an API that embedders can use (see for example #460). It should be fairly easy to add an ObjC class with a documented interface using class methods that can be used for this. That should isolate embedders from the technical details of this, allowing further evolution of the implementation.

Including documentation and tests of course...

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

1 participant