Skip to content

Support prompts indicate freethreaded build status #3554

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

oddbookworm
Copy link
Member

No description provided.

@oddbookworm oddbookworm force-pushed the update-prompt-with-freethreading-info branch from 799358f to 3d892c1 Compare August 9, 2025 14:08
@oddbookworm
Copy link
Member Author

Python 3.9
image

Python 3.12
image

Python 3.13 (not a freethreaded build)
image

Python 3.13 free-threaded (GIL Enabled)
image

Python 3.13 free-threaded (GIL Disabled)
image

if (
sys.platform not in ("wasi", "wasm")
and (sys.version_info >= (3, 13, 0))
and "free-threading" in python_implementation
Copy link
Member

@ankith26 ankith26 Aug 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fact that this specific string is a substring of sys.version seems like an implementation detail. The docs even discourage extracting information out of sys.version.

A quick chatgpt tells me that sysconfig.get_config_var("Py_GIL_DISABLED") is an equivalent way to check for this, though we need to test it out.
UPDATE: On my Ubuntu 25.04 with python 3.13 this config var check is accurate.

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.

2 participants