Skip to content

Properly handle interrupts in python main thread - #53

Merged
Shimuuar merged 4 commits into
masterfrom
main_interrupt
Sep 5, 2026
Merged

Properly handle interrupts in python main thread#53
Shimuuar merged 4 commits into
masterfrom
main_interrupt

Conversation

@Shimuuar

@Shimuuar Shimuuar commented Sep 5, 2026

Copy link
Copy Markdown
Owner

No description provided.

It turns out that exceptions raised by PyThreadState_SetAsyncExc are invisible
to PyErr_Clear until python interpreter does some work and sees that exception.
@Shimuuar
Shimuuar merged commit 61b4509 into master Sep 5, 2026
12 checks passed
@Shimuuar
Shimuuar deleted the main_interrupt branch September 5, 2026 13:46
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.

1 participant