Skip to content

Commit b1cc865

Browse files
committed
Update to canonical PEP URLs and use the Sphinx :pep: role
1 parent 3dccf92 commit b1cc865

File tree

6 files changed

+9
-15
lines changed

6 files changed

+9
-15
lines changed

c-api.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ definition in ``Include/internal/`` (or directly in a ``.c`` file):
5858
* “Provisional” API, included in a Python release to test real-world usage
5959
of new API. Such names should be renamed when stabilized; preferably with
6060
a macro aliasing the old name to the new one.
61-
See `"Finalizing the API" in PEP 590`_ for an example.
62-
63-
.. _"Finalizing the API" in PEP 590: https://www.python.org/dev/peps/pep-0590/#finalizing-the-api
61+
See :pep:`"Finalizing the API" in PEP 590 <590#finalizing-the-api>` for an example.
6462

6563

6664
.. _public-capi:

extensions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ Read the following references:
1111

1212
* https://docs.python.org/dev/c-api/
1313
* https://docs.python.org/dev/extending/
14-
* https://www.python.org/dev/peps/pep-0399/
14+
* :pep:`399`
1515
* https://pythonextensionpatterns.readthedocs.io/en/latest/

index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ Full Table of Contents
333333

334334
.. _Buildbot status: https://www.python.org/dev/buildbot/
335335
.. _Misc directory: https://github.com/python/cpython/tree/main/Misc
336-
.. _PEPs: https://www.python.org/dev/peps/
336+
.. _PEPs: https://peps.python.org/
337337
.. _python.org maintenance: https://pythondotorg.readthedocs.io/
338338
.. _Python: https://www.python.org/
339339
.. _Core Python Mentorship: https://www.python.org/dev/core-mentorship/

langchanges.rst

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ your proposed change (which helps communicate the usefulness of your change to
2828
others). For further guidance, see :ref:`suggesting-changes`.
2929

3030
Your proposed change also needs to be *Pythonic*. While only the Steering
31-
Council can truly classify something as Pythonic, you can read the `Zen of
32-
Python`_ for guidance.
33-
34-
.. _Zen of Python: https://www.python.org/dev/peps/pep-0020/
31+
Council can truly classify something as Pythonic, you can read the
32+
:pep:`Zen of Python <20>` for guidance.
3533

3634

3735
.. index:: PEP process
@@ -79,7 +77,7 @@ task.
7977

8078
If the idea is reasonable, someone will suggest posting it as a feature
8179
request on the `issue tracker`_, or, for larger changes, writing it up as
82-
a `draft PEP`_.
80+
a :pep:`draft PEP <1>`.
8381

8482
Sometimes core developers will differ in opinion, or merely be collectively
8583
unconvinced. When there isn't an obvious victor then the
@@ -90,7 +88,6 @@ For some examples on language changes that were accepted please read
9088

9189
.. _python-ideas: https://mail.python.org/mailman3/lists/python-ideas.python.org/
9290
.. _issue tracker: https://bugs.python.org
93-
.. _PEP Index: https://www.python.org/dev/peps/
94-
.. _draft PEP: https://www.python.org/dev/peps/pep-0001/
91+
.. _PEP Index: https://peps.python.org/
9592
.. _Status Quo Wins a Stalemate: https://www.curiousefficiency.org/posts/2011/02/status-quo-wins-stalemate.html
9693
.. _Justifying Python Language Changes: https://www.curiousefficiency.org/posts/2011/02/justifying-python-language-changes.html

stdlibchanges.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,4 +147,4 @@ means that the core developers end up agreeing in general to accepting
147147
your PEP) then the module will be added to the stdlib once the creators of the
148148
module sign :ref:`contributor agreements <contributor_agreement>`.
149149

150-
.. _PEP index: https://www.python.org/dev/peps/
150+
.. _PEP index: https://peps.python.org/

triaging.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ Various informational flags about the issue. Multiple values are possible.
387387
| | difference from the "security" issue type is that this is |
388388
| | a definite security problem that has to be dealt with. |
389389
+---------------+------------------------------------------------------------+
390-
| PEP 3121 | The issue is related to PEP `PEP 3121`_. |
390+
| PEP 3121 | The issue is related to :pep:`3121`. |
391391
| | Extension Module Initialization and Finalization. |
392392
+---------------+------------------------------------------------------------+
393393
| newcomer | Issue suitable for newcomer/first time contributors. |
@@ -630,4 +630,3 @@ Checklist for Triaging
630630
.. _python-ideas: https://mail.python.org/mailman3/lists/python-ideas.python.org
631631
.. _release schedule: https://devguide.python.org/#status-of-python-branches
632632
.. _PSF Code of Conduct: https://www.python.org/psf/conduct/
633-
.. _PEP 3121: https://www.python.org/dev/peps/pep-3121/

0 commit comments

Comments
 (0)