Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Allow C extensions to declare compatibility with free-threading #116322

Closed
Assignees
swtaarrs
@swtaarrs

Description

@swtaarrs

Feature or enhancement

There are a few pieces to this:

  1. Add aPy_mod_gil slot, asdescribed in PEP 703, that multi-phase init modules can use to indicate that they support free-threading.
  2. Add aPyModule_ExperimentalSetGIL() function (discussedhere) that single-phase init modules can use in place ofPy_mod_gil.
  3. Mark all built-in modules as free-threading compatible with one of the above mechanisms.
  4. Enable the GIL while loading a C module and leave it permanently enabled if the module does not declare free-threading compatibility.

1-3 are addressed ingh-116882; 4 will be addressed in a separate PR.

Linked PRs

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp