Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Support free-threaded CPython (3.13t) #23158

@nascheme

Description

@nascheme

This issue is intended to track the efforts of adding support for the free-threaded build for CPython (either 3.13t or 3.14t). The Python free-threading guide contains some helpful advice on approaching this task. Based on that guide, I think the following steps make sense:

  1. Define and document the thread safety guarantees that apply to the protobuf package.
  2. Revise pure-Python version of the package to meet those guarantees.
  3. Revise the "upb" backend.
  4. Revise the "cpp" backend, only if there is a concrete need for a free-threaded compatible version of it.

Related issues and PRs:

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions