Skip to content

abi3-abi3t documentation update #150187

Description

@hydrogen-mvm

Documentation

Hello,

I want to know if the abi3-abi3t source level compatibility (not binary level compatibility) is largely done and extension authors can start compiling against 3.15.0b1 to port their source code over. I've found scant documentation on this, other than this demo repository: https://github.com/encukou/abi3-abi3t-universal/tree/b1

I have some extensions built on non-stable ABIs (3.11 and earlier) and one that's built for 3.14 (for free-threading). I want to port everything to the stable ABI, but I don't want to port to abi3 only to again have to do another port to abi3t, so I'm curious to know where things stand with abi3-abi3t and whether I can start leaping directly to it. The documentation isn't clear on this, other than just saying it's a new ABI and promoting its benefits. https://docs.python.org/3.15/whatsnew/3.15.html#whatsnew315-abi3t

I know I'll have to recompile when rc1 (or final) is out and that's okay, but I want to start the source level (C/C++ level) changes early (i.e. now) unless the devs know that source level compatibility is still in flux (like how PEP 820 changed the slot initialization).

Thanks.

Activity

  1. vstinner commented on May 21, 2026

    @vstinner
    Member
  2. encukou commented on May 25, 2026

    @encukou
    Member

    Sorry for the (PyCon-related) delay.

    By beta 2 (i.e. next week) I'll have a PR with the migration docs; I don't know if it'll be merged by then. If I forget to link it here, please ping me.

    The implementation is done, except these docs (and internals like testing improvements & optimizations). Things may still change (up to release candidate) if unknown issues pop up, but that shouldn't invalidate your porting effort. We're not dropping another PEP 820; there's a chance you won't even need to recompile at rc1 :)

  3. encukou commented on Jun 2, 2026

    @encukou
    Member

    The docs PR is up. Rendered version: https://cpython-previews--150580.org.readthedocs.build/en/150580/howto/abi3t-migration.html#abi3t-migration-howto

    Officially, things can change until the final release; the plan is that they don't.

    If you want to port, now is the best time to start -- if here are any issues, the sooner they're found the easier they are to fix.

  4. hydrogen-mvm commented on Jun 25, 2026

    @hydrogen-mvm
    ContributorAuthor

    Thanks for the docs, I was able to get a single pyd file to load on both 3.15 and 3.15t while using the stable ABI. Thanks!

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

    docsDocumentation in the Doc dir

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions