Skip to content

[Decided] Free-threaded CPython 3.15t is the only build; make every repo correct on it #158

Done

Description

@b-re-w

Decision needed (asked 2026-10-04). Background: AGENTS §12.8 (parallelism from free-threaded CPython), ROADMAP §9, SPEC T-1/T-2, docs/design/threading-and-abi.md.

Why the default stays GIL today: no free-threaded prebuilt for Android or iOS (checked 2026-08-12), so switching splits the threading, lifetime and thread-state design across platforms; free-threaded wheel coverage of C extensions is thin; our own code is not ready (PyType.getInstance cache race, GIL release after init not enabled (C-4), ROADMAP 9.1 open).

Recommendation:

  1. Keep pythonFreeThreaded=false as the default.
  2. Make every thisisthepy repo free-threaded-ready: no reliance on GIL atomicity; a required CI job on desktop 3.14t for python-multiplatform, TypedPython and pythonx-*; native extensions declare Py_MOD_GIL_NOT_USED only once proven thread-safe.
  3. TypedPython free-threaded support as its own stage (see linked issue).
  4. Binder issues: PyType cache race, GIL release after init, withGIL on JVM virtual threads.
  5. Investigate building free-threaded CPython for Android and iOS ourselves.

Options: (a) the above; (b) switch desktop default to 3.14t now and accept the platform split; (c) do nothing until upstream mobile prebuilts exist.

Activity

  1. b-re-w commented on Oct 3, 2026

    @b-re-w
    MemberAuthor

    Decided by the maintainer, 2026-10-04:

  2. changed the title [-][Decision] Free-threaded readiness: keep GIL as default, make every repo correct on 3.14t[/-] [+][Decided] Free-threaded CPython 3.15t is the only build; make every repo correct on it[/+] on Oct 3, 2026
  3. b-re-w commented on Nov 13, 2026

    @b-re-w
    MemberAuthor

    Desktop half landed in develop via #398. Desktop JVM and desktop Kotlin/Native embed free-threaded 3.15t only, and -PpythonFreeThreaded is removed. Whether a platform is free-threaded is now set per platform (embedsFreeThreadedPython). CI on the branch: Desktop 43329515729 (desktopTest, linuxX64Test, notebook E2E including the native image), iOS 43306319317, Android Native 43306311299, WasmJS 43306326647, TypedPython 43306335397 and stubs 43306343765, all success. The first desktop run found four tests that assumed GIL-build or 3.14t behaviour; they were corrected for 3.15.0, with no product change. Mobile follows in #387 (#328) and wasm in #175.

  4. added a commit that references this issue on Nov 13, 2026
  5. b-re-w commented on Nov 21, 2026

    @b-re-w
    MemberAuthor

    Closing per the criterion in the pmp-binder triage: closes when #328 is closed and #175 has the leader's 1.0 scope decision.

  6. b-re-w commented on Nov 21, 2026

    @b-re-w
    MemberAuthor

    Reopened: the owner put #175 (wasm on 3.15t) back in 1.0 on 2026-11-21 (via the leader, team report pmp-binder.md, "## Owner decision (2026-11-21, via the leader): #175 is back in 1.0"), which replaces the "after 1.0" answer this issue was closed on. Desktop, Android and iOS are done (#398, #328); this closes when #175 lands.

  7. reopened this on Nov 21, 2026
  8. b-re-w commented on Nov 27, 2026

    @b-re-w
    MemberAuthor

    Closing per the criterion in the reopen comment: "this closes when #175 lands". #175 landed in develop via #542 (merged with #544 in the batch run 45848955214) and the leader closed it on 2026-11-26.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions