← Back to Pull requests

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

Closed
unknown closed this pull request without merging on Nov 26, 2026 15:03 UTC
View on GitHub
unknown unknown commented on Nov 23, 2026 14:40 UTC
Author

Change is either:
[x] 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

    Diff: 189 lines (+141 / -48) across 2 files Reviewer: konstin Review duration: 4342m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 189 lines diff across 2 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.314
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #5242"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 35.9% (MEDIUM) · Higher = larger blast radius
    35.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 14.2% · Safe to merge
    14.2%
    Repository