Skip to content

PEP 793, 803, 820: Update & mark as Final#5006

Open
encukou wants to merge 1 commit into
python:mainfrom
encukou:803nc-finalize
Open

PEP 793, 803, 820: Update & mark as Final#5006
encukou wants to merge 1 commit into
python:mainfrom
encukou:803nc-finalize

Conversation

@encukou

@encukou encukou commented Jun 24, 2026

Copy link
Copy Markdown
Member
  • Final implementation has been merged (including tests and docs)
  • PEP matches the final implementation
  • Any substantial changes since the accepted version approved by the SC/PEP delegate
    • I think the changes turned out to not be substantial; see below
  • Pull request title in appropriate format (PEP 123: Mark as Final)
    • I hope combining them is fine :)
  • Status changed to Final (and Python-Version is correct)
  • Canonical docs/spec linked with a canonical-doc directive
    (or canonical-pypa-spec for packaging PEPs,
    or canonical-typing-spec for typing PEPs)

Besides typos, minor inaccuracies, and links to current docs and implementation-tracking issues, the changes are:

PEP 793:

  • Updated with changes specified in PEP 820

PEP 803:

  • If Py_TARGET_ABI3T is defined, then Python.h will make sure that Py_GIL_DISABLED is defined as well.
    Users may check this macro to enable free-threading-specific code like extra locking.

    (Users do this in practice.)

  • Add a PyABIInfo_FREETHREADING_AGNOSTIC flag for PyABIInfo.flags

    (I forgot to mention it both here and in Add a struct, slot & function for checking an extension's ABI capi-workgroup/decisions#72.)

  • Mention that PyCriticalSection was added too.

PEP 820:

  • Clarify that the PySlot_STATIC flag is required for data that needs to be static (Py_mod_methods, Py_tp_methods, Py_tp_members, Py_tp_getset) when using the new-style slots.
    (The original reference implementation didn't have this.)

@encukou encukou requested a review from a team as a code owner June 24, 2026 13:53
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 pep-previews | 🛠️ Build #33290881 | 📁 Comparing 4cc7ea2 against latest (c7fb679)

  🔍 Preview build  

6 files changed · ± 6 modified

± Modified

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant