From 9ce9f7a9b5ef422e62896c3e94fda48509ffb12c Mon Sep 17 00:00:00 2001
From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Date: Tue, 1 Dec 2026 15:41:59 +0200
Subject: [PATCH] PEPs 1, 12: Explicit Discussions-To is now optional
---
peps/pep-0001.rst | 32 ++++++++++++++++++++------------
peps/pep-0012.rst | 18 +++++++++---------
peps/pep-0012/pep-NNNN.rst | 1 -
3 files changed, 29 insertions(+), 22 deletions(-)
diff --git a/peps/pep-0001.rst b/peps/pep-0001.rst
index 596f68e19ab..20903873d4e 100644
--- a/peps/pep-0001.rst
+++ b/peps/pep-0001.rst
@@ -274,7 +274,7 @@ As soon as a PEP number has been assigned
and the draft PEP is committed to the `PEP repository`_,
a discussion thread for the PEP should be created
to provide a central place to discuss and review its contents, and the
-PEP should be updated so that the ``Discussions-To`` header links to it.
+PEP should be updated so that the ``Post-History`` header links to it.
The PEP authors (or sponsor, if applicable) may select any reasonable venue
for the discussion, so long as the following criteria are met:
@@ -284,8 +284,9 @@ for the discussion, so long as the following criteria are met:
can participate.
* The discussion is subject to the `Python Community Code of Conduct
`_.
-* A direct link to the current discussion thread is provided in the PEP
- under the ``Discussions-To`` header.
+* A direct link to the current discussion thread is provided in the PEP.
+ By default, this is the last link in the ``Post-History`` header,
+ unless a ``Discussions-To`` header is given.
The `PEPs category`_ of the `Python Discourse`_
is the preferred choice for most new PEPs,
@@ -298,13 +299,13 @@ the PEP Sponsor and PEP editors can advise them accordingly.
If a PEP undergoes a significant re-write or other major, substantive
changes to its proposed specification, a new thread should typically be created
-in the chosen venue to solicit additional feedback. If this occurs, the
-``Discussions-To`` link must be updated and a new ``Post-History`` entry added
-pointing to this new thread.
+in the chosen venue to solicit additional feedback. If this occurs,
+a new ``Post-History`` entry must be added pointing to this new thread,
+and the ``Discussions-To`` link, if present, must be updated.
If it is not chosen as the discussion venue,
a brief announcement post should be made to the `PEPs category`_
-with at least a link to the rendered PEP and the ``Discussions-To`` thread
+with at least a link to the rendered PEP and the discussion thread
when the draft PEP is committed to the repository
and if a major-enough change is made to trigger a new thread.
@@ -631,7 +632,7 @@ optional and are described below. All other headers are required.
Author:
* Sponsor:
* PEP-Delegate:
- Discussions-To:
+ * Discussions-To:
Status:
Type:
@@ -682,8 +683,10 @@ only. It contains a URL that should point to an email message or
other web resource where the pronouncement about
(i.e. approval or rejection of) the PEP is made.*
-The Discussions-To header provides the URL to the current
+The optional ``Discussions-To`` header provides the URL to the current
canonical discussion thread for the PEP.
+If omitted, the last link in the ``Post-History`` header is used instead
+and shown as ``Discussions-To`` in the rendered PEP.
For email lists, this should be a direct link to the thread in the list's
archives, rather than just a mailto: or hyperlink to the list itself.
@@ -696,7 +699,7 @@ See the :ref:`topic-index` for the existing topics.
The Created header records the date that the PEP was assigned a
number, while Post-History is used to record the dates of and corresponding
-URLs to the Discussions-To threads for the PEP, with the former as the
+URLs to the discussion threads for the PEP, with the former as the
linked text, and the latter as the link target.
Both sets of dates should be in ``dd-mmm-yyyy`` format, e.g. ``14-Aug-2001``.
@@ -737,8 +740,8 @@ Changing Existing PEPs
Draft PEPs are freely open for discussion and proposed modification, at the
discretion of the authors, until submitted to the Steering Council or
PEP-Delegate for review and resolution. Substantive content changes should
-generally be first proposed on the PEP's discussion thread listed in its
-``Discussions-To`` header, while copyedits and corrections can be submitted
+generally be first proposed on the PEP's discussion thread,
+while copyedits and corrections can be submitted
as a `GitHub issue`_ or `GitHub pull request`_.
PEP authors with write access to the PEP repository can update the PEPs
themselves by using ``git push`` or a GitHub PR to submit their changes.
@@ -897,6 +900,11 @@ Footnotes
Change History
==============
+* 2026-12-01
+
+ * Made the ``Discussions-To`` header optional: when omitted, it is derived from the last link
+ in the ``Post-History`` header.
+
* 2026-02-02
* Added an optional ``Change History`` section for PEPs, for summarizing changes when updating the
diff --git a/peps/pep-0012.rst b/peps/pep-0012.rst
index 4ff2527f794..bda1afcac01 100644
--- a/peps/pep-0012.rst
+++ b/peps/pep-0012.rst
@@ -84,12 +84,11 @@ directions below.
- If none of the authors are Python core developers, include a Sponsor
header with the name of the core developer sponsoring your PEP.
-- Add the direct URL of the PEP's canonical discussion thread
- (on e.g. Python-Dev, Discourse, etc) under the Discussions-To header.
- If the thread will be created after the PEP is submitted as an official
- draft, it is okay to just put "Pending" initially, but remember to
- update the PEP with the URL as soon as the PEP is successfully merged
- to the PEPs repository and you create the corresponding discussion thread.
+- You can usually omit the ``Discussions-To`` header: the rendered PEP
+ will show the last link in the ``Post-History`` as the canonical discussion
+ thread.
+ Only add an explicit ``Discussions-To`` if the canonical discussion
+ thread is not the last one linked in ``Post-History``.
See :pep:`PEP 1 <1#discussing-a-pep>` for more details.
- Change the Status header to "Draft".
@@ -126,8 +125,9 @@ directions below.
Most PEPs don't.
- Post-History can be 'Pending' for now; you'll add dates and corresponding links
- to this header each time you post your PEP to the designated discussion forum
- (and update the Discussions-To header with said link, as above).
+ to this header each time you post your PEP to the designated discussion forum.
+ The last link is shown as the PEP's canonical discussion thread,
+ unless there is an explicit Discussions-To header.
For each thread, use the date (in the ``DD-MMM-YYYY`` format) as the
linked text, and insert the URLs inline as anonymous reST `hyperlinks`_,
with commas in between each posting.
@@ -175,7 +175,7 @@ your PEP):
Author: [Full Name ]
Sponsor: *[Full Name ]
PEP-Delegate:
- Discussions-To: [URL]
+ Discussions-To: *[URL]
Status: Draft
Type: [Standards Track | Informational | Process]
Topic: *[Governance | Packaging | Release | Typing]
diff --git a/peps/pep-0012/pep-NNNN.rst b/peps/pep-0012/pep-NNNN.rst
index 72aad2e6f87..e44757a9eb5 100644
--- a/peps/pep-0012/pep-NNNN.rst
+++ b/peps/pep-0012/pep-NNNN.rst
@@ -3,7 +3,6 @@ Title:
Author:
Sponsor:
PEP-Delegate:
-Discussions-To: Pending
Status:
Type:
Topic: