Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 20 additions & 12 deletions peps/pep-0001.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
<https://www.python.org/psf/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,
Expand All @@ -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.

Expand Down Expand Up @@ -631,7 +632,7 @@ optional and are described below. All other headers are required.
Author: <list of authors' names and optionally, email addrs>
* Sponsor: <name of sponsor>
* PEP-Delegate: <PEP delegate's name>
Discussions-To: <URL of current canonical discussion thread>
* Discussions-To: <URL of current canonical discussion thread>
Status: <Draft | Active | Accepted | Provisional | Deferred | Rejected |
Withdrawn | Final | Superseded>
Type: <Standards Track | Informational | Process>
Expand Down Expand Up @@ -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.

Expand All @@ -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``.

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
18 changes: 9 additions & 9 deletions peps/pep-0012.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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".
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -175,7 +175,7 @@ your PEP):
Author: [Full Name <email at example.com>]
Sponsor: *[Full Name <email at example.com>]
PEP-Delegate:
Discussions-To: [URL]
Discussions-To: *[URL]
Status: Draft
Type: [Standards Track | Informational | Process]
Topic: *[Governance | Packaging | Release | Typing]
Expand Down
1 change: 0 additions & 1 deletion peps/pep-0012/pep-NNNN.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Title: <REQUIRED: pep title>
Author: <REQUIRED: list of authors' names and optionally, email addrs>
Sponsor: <name of sponsor>
PEP-Delegate: <PEP delegate's name>
Discussions-To: Pending
Status: <REQUIRED: Draft | Active | Accepted | Provisional | Deferred | Rejected | Withdrawn | Final | Superseded>
Type: <REQUIRED: Standards Track | Informational | Process>
Topic: <Governance | Packaging | Release | Typing>
Expand Down
Loading