Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-103092: Isolate _tkinter (WIP)#103108

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

Conversation

erlend-aasland
Copy link
Contributor

@erlend-aaslanderlend-aasland commentedMar 29, 2023
edited
Loading

TODO

  • There's no way to pass state toPyOS_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 reimplementPyOS_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?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ericsnowcurrentlyericsnowcurrentlyAwaiting requested review from ericsnowcurrentlyericsnowcurrently will be requested when the pull request is marked ready for reviewericsnowcurrently is a code owner

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@erlend-aasland@arhadthedev@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp