-
Notifications
You must be signed in to change notification settings - Fork 948
Add Free-Threaded Python Support in 3.14 #2092
Copy link
Copy link
Open
Labels
code:CIssues that are specific to C behavior or domain within the library independent of library logicIssues that are specific to C behavior or domain within the library independent of library logicenhancementRequesting a feature changeRequesting a feature changeinvestigate furtherIt's unclear what the issue is at this time but there is enough interest to look into itIt's unclear what the issue is at this time but there is enough interest to look into itpriority:highMaintainer triage tag for indicating high impact or criticality issuesMaintainer triage tag for indicating high impact or criticality issues
Metadata
Metadata
Assignees
Labels
code:CIssues that are specific to C behavior or domain within the library independent of library logicIssues that are specific to C behavior or domain within the library independent of library logicenhancementRequesting a feature changeRequesting a feature changeinvestigate furtherIt's unclear what the issue is at this time but there is enough interest to look into itIt's unclear what the issue is at this time but there is enough interest to look into itpriority:highMaintainer triage tag for indicating high impact or criticality issuesMaintainer triage tag for indicating high impact or criticality issues
With the release of Python 3.14, free threaded support (i.e., GIL-less python) is now a sensible option.
Third party packages that use C-Extensions like confluent_kafka however need to have code change to support free-threaded mode.
Here is the documentation on how to change C-Extensions to support free threaded mode:
https://docs.python.org/3.14/howto/free-threading-extensions.html#freethreading-extensions-howto
My understanding is that if a third party application does not support free-threaded python, then applications which import these applications will revert to using the GIL. This means that users are stuck with the GIL until all third party applications have ported to free-threaded compatibility.
May we please put this on the road map for confluent_kafka?
Thank you.