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

gh-103092: Isolate _tkinter (WIP) #103108

Closed
wants to merge 18 commits into from

Conversation

erlend-aasland
Copy link
Contributor

@erlend-aasland erlend-aasland commented Mar 29, 2023

TODO

  • There's no way to pass state to PyOS_InputHooks. Introduce a new hook with context pointer? Just opt out of multi-phase init / module state for _tkinter? Or just protect these with per-interpreter locks.

  • Handle the three Tcl mutexes

@arhadthedev
Copy link
Member

There's no way to pass state to PyOS_InputHooks. Introduce a new hook with context pointer?

We can add two private API functions (a name and arguments are up to discussion):

  • int _PyOS_suscribesig(int i, void(*)(int, void *) h, void *harg);
  • void _PyOS_unsuscribesig(int subscription);

and reimplement PyOS_setsig as a wrapper to avoid conflicts.

By the way, are the signals are process-wide or pthread-wide? If the former, is there a global CPython structure common for all (sub)interpreters?

@erlend-aasland erlend-aasland deleted the isolate-tkinter branch July 2, 2023 21:41
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