Skip to content

Commit 7518444

Browse files
authored
PEP 1 & 12: Link Post-History dates to discussion threads (#2358)
1 parent 5c17c31 commit 7518444

File tree

3 files changed

+32
-19
lines changed

3 files changed

+32
-19
lines changed

pep-0001.txt

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -286,13 +286,13 @@ the PEP Sponsor and PEP editors can advise them accordingly.
286286
If the chosen venue is not the `Python-Dev`_ mailing list,
287287
a brief announcement should be posted there when the draft PEP is
288288
committed to the PEP repository and available on the PEP website,
289-
with a link to the rendered PEP and the to canonical Discussions-To thread.
289+
with a link to the rendered PEP and to the canonical ``Discussions-To`` thread.
290290

291291
If a PEP undergoes a significant re-write or other major, substantive
292292
changes to its proposed specification, a new thread should typically be created
293293
in the chosen venue to solicit additional feedback. If this occurs, the
294-
``Discussions-To`` link and ``Post-History`` in the PEP must be updated to
295-
reflect this new thread, and (if not the discussion venue) a further
294+
``Discussions-To`` link must be updated and a new ``Post-History`` entry added
295+
pointing to this new thread, and (if not the discussion venue) a further
296296
announcement sent to `Python-Dev`_ containing the same information as above
297297
and at least briefly summarizing the major changes.
298298

@@ -600,7 +600,8 @@ optional and are described below. All other headers are required.
600600
* Requires: <pep numbers>
601601
Created: <date created on, in dd-mmm-yyyy format>
602602
* Python-Version: <version number>
603-
Post-History: <dates of postings to Python-Dev and/or the Discussions-To thread, in dd-mmm-yyyy format>
603+
Post-History: <dates, in dd-mmm-yyyy format,
604+
inline-linked to PEP discussion threads>
604605
* Replaces: <pep number>
605606
* Superseded-By: <pep number>
606607
* Resolution: <url>
@@ -654,9 +655,10 @@ and have a value of ``text/x-rst``, the default.
654655
Previously, plaintext PEPs used ``text/plain`` (see :pep:`9`).
655656

656657
The Created header records the date that the PEP was assigned a
657-
number, while Post-History is used to record the dates of when new
658-
versions of the PEP are posted to Python-Dev and/or the Discussions-To thread.
659-
Both headers should be in dd-mmm-yyyy format, e.g. 14-Aug-2001.
658+
number, while Post-History is used to record the dates of and corresponding
659+
URLs to the Discussions-To threads for the PEP, with the former as the
660+
linked text, and the latter as the link target.
661+
Both sets of dates should be in ``dd-mmm-yyyy`` format, e.g. ``14-Aug-2001``.
660662

661663
Standards Track PEPs will typically have a Python-Version header which
662664
indicates the version of Python that the feature will be released with.

pep-0012.rst

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Status: Active
77
Type: Process
88
Content-Type: text/x-rst
99
Created: 05-Aug-2002
10-
Post-History: 30-Aug-2002
10+
Post-History: `30-Aug-2002 <https://mail.python.org/archives/list/[email protected]/thread/KX3AS7QAY26QH3WIUAEOCCNXQ4V2TGGV/>`__
1111

1212

1313
.. note::
@@ -113,20 +113,29 @@ directions below.
113113
first appearance in. Do not use an alpha or beta release
114114
designation here. Thus, if the last version of Python was 2.2 alpha
115115
1 and you're hoping to get your new feature into Python 2.2, set the
116-
header to::
116+
header to:
117+
118+
.. code-block:: email
117119
118120
Python-Version: 2.2
119121
120-
- Leave Post-History alone for now; you'll add dates to this header
121-
each time you post your PEP to the designated discussion forum (and announce
122-
it on Python-Dev, if needed; see the ``Discussions-To`` header above).
122+
- Leave Post-History alone for now; you'll add dates and corresponding links
123+
to this header each time you post your PEP to the designated discussion forum
124+
(and update the Discussions-To header with said link, as above).
125+
For each thread, use the date (in the ``dd-mmm-yyy`` format) as the
126+
linked text, and insert the URLs inline as anonymous reST `hyperlinks`_,
127+
with commas in between each posting.
128+
123129
If you posted threads for your PEP on August 14, 2001 and September 3, 2001,
124-
the Post-History header would look like::
130+
the Post-History header would look like, e.g.:
125131

126-
Post-History: 14-Aug-2001, 03-Sept-2001
132+
.. code-block:: email
127133
128-
You must manually add new dates and commit them (with a pull request
129-
if you don't have push privileges).
134+
Post-History: `14-Aug-2001 <https://www.example.com/thread_1>`__,
135+
`03-Sept-2001 <https://www.example.com/thread_2>`__
136+
137+
You should add the new dates/links here as soon as you post a
138+
new discussion thread.
130139

131140
- Add a Replaces header if your PEP obsoletes an earlier PEP. The
132141
value of this header is the number of the PEP that your new PEP is
@@ -149,7 +158,9 @@ directions below.
149158
For reference, here are all of the possible header fields (everything
150159
in brackets should either be replaced or have the field removed if
151160
it has a leading ``*`` marking it as optional and it does not apply to
152-
your PEP)::
161+
your PEP):
162+
163+
.. code-block:: email
153164
154165
PEP: [NNN]
155166
Title: [...]
@@ -163,7 +174,7 @@ your PEP)::
163174
Requires: *[NNN]
164175
Created: [DD-MMM-YYYY]
165176
Python-Version: *[M.N]
166-
Post-History: [DD-MMM-YYYY]
177+
Post-History: [`DD-MMM-YYYY <URL>`__]
167178
Replaces: *[NNN]
168179
Superseded-By: *[NNN]
169180
Resolution:

pep-0012/pep-NNNN.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Content-Type: text/x-rst
1010
Requires: <pep numbers>
1111
Created: <date created on, in dd-mmm-yyyy format>
1212
Python-Version: <version number>
13-
Post-History: <REQUIRED: dates of postings to Python-Dev and/or the Discussions-To thread, in dd-mmm-yyyy format>
13+
Post-History: <REQUIRED: dates, in dd-mmm-yyyy format, and corresponding links to PEP discussion threads>
1414
Replaces: <pep number>
1515
Superseded-By: <pep number>
1616
Resolution: <url>

0 commit comments

Comments
 (0)