Skip to content

Add workaround for python3.11 - #46

Merged
Shimuuar merged 1 commit into
masterfrom
runPyInMain
Aug 23, 2026
Merged

Add workaround for python3.11#46
Shimuuar merged 1 commit into
masterfrom
runPyInMain

Conversation

@Shimuuar

Copy link
Copy Markdown
Owner

Without this that checks that current_thread()==main_thread() fail intermittently for python3.11 In that case thread used by runInMain has correct thread id (as returned by PyThread_get_thread_ident) but isn't considered main by python interpreter.

Importing threading module fixes this. Why? It's unclear

Fixes #45

Without this that checks that current_thread()==main_thread() fail
intermittently for python3.11 In that case thread used by runInMain has correct
thread id (as returned by PyThread_get_thread_ident) but isn't considered main
by python interpreter.

Importing threading module fixes this. Why? It's unclear

Fixes #45
@Shimuuar
Shimuuar merged commit 709a5e6 into master Aug 23, 2026
11 checks passed
@Shimuuar
Shimuuar deleted the runPyInMain branch August 23, 2026 12:16
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.

Test runPyInMain intermittenly fails with python 3.11

1 participant