Skip to content

Comments

Fix threading in calling PyOS_InputHook from new REPL#80

Open
mdboom wants to merge 2 commits intopablogsal:gh-119842from
mdboom:gh-119842
Open

Fix threading in calling PyOS_InputHook from new REPL#80
mdboom wants to merge 2 commits intopablogsal:gh-119842from
mdboom:gh-119842

Conversation

@mdboom
Copy link

@mdboom mdboom commented May 31, 2024

Just a proof-of-concept for what seems to make this work.

Since the PyOS_InputHook implementation in Tkinter sets the thread state, we need to allow threads around calling it. I'm not sure that's possible directly from Python (maybe it is), so I just added a C function to handle this. This seems to make things work correctly, at least for matplotlib and the Tkinter reproducer here.

I'm not sure the new function is in the right file.

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

Successfully merging this pull request may close these issues.

2 participants