Skip to content

PEP 780: Address review feedback on whitespace, type, and serialization - #5242

Draft
zklaus wants to merge 1 commit into
python:mainfrom
zklaus:pep-780-thread-feedback
Draft

zklaus wants to merge 1 commit into
python:mainfrom
zklaus:pep-780-thread-feedback

Conversation

@zklaus

@zklaus zklaus commented Nov 23, 2026

Copy link
Copy Markdown
Contributor
  • Change is either:
    • To a Draft PEP
    • To an Accepted or Final PEP, with Steering Council approval
    • To fix an editorial issue (markup, typo, link, header, etc)
  • PR title prefixed with PEP number (e.g. PEP 123: Summary of changes)

Follow-up to #4608, addressing feedback from the
discussion thread and findings from
updating the reference implementation.

  • Whitespace: specify that spaces and tabs adjacent to the :: separator
    are ignored in strings tested against sys_abi_info, and that everything
    else is compared as an opaque string. A non-matching string is absent from
    the set, not an error.
  • Type: declare the marker's type as Set of strings in the marker table
    and refer to the existing rules for such fields. Replace "frozen set" with
    "set".
  • Unsupported types: clarify that a required feature whose sys.abi_info
    field has an unsupported type falls back to the rules for older
    interpreters.
  • Serialized marker environments: new subsection in Backwards
    Compatibility. sys_abi_info is the first non-string value in the default
    marker environment, which affects tools that serialize it (pip inspect,
    pip install --report, pdm info --env) and tools that probe a target
    interpreter (tox). Recommends a sorted JSON array of the strings.

The reference implementation (packaging, patched pip, demo package) has been
updated to match.

Assisted-by: Claude Code:claude-fable-5-2

- Specify the handling of whitespace in strings tested against
  sys_abi_info: spaces and tabs adjacent to the "::" separator are
  ignored, everything else is compared as an opaque string.
- Declare the marker's type as "Set of strings" and refer to the existing
  rules for such fields; drop the "frozen set" wording.
- Clarify that a required feature whose sys.abi_info field has an
  unsupported type falls back to the rules for older interpreters.
- Add a section on serialized marker environments, recommending a sorted
  JSON array and discussing tools that probe a target interpreter.

Assisted-by: Claude Code:claude-fable-5-2
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 pep-previews | 🛠️ Build #36103897 | 📁 Comparing 93d4bc1 against latest (4434e72)

  🔍 Preview build  

1 file changed
± pep-0780/index.html

@rgommers
rgommers self-requested a review November 23, 2026 16:16

This branch has not been deployed

No deployments
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