Skip to content

Add Free-Threaded Python Support in 3.14 #2092

@mkmoisen

Description

@mkmoisen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    code:CIssues that are specific to C behavior or domain within the library independent of library logicenhancementRequesting a feature changeinvestigate furtherIt'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 issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions