Skip to content

Commit 6816088

Browse files
authored
PEP 366, 395, 413, 426, 430, 440, 531, 535, 3150: Fix footnotes (#2794)
1 parent 38b778d commit 6816088

9 files changed

+67
-142
lines changed

pep-0366.txt

+3-11
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ which stored the main module's real module name in the
103103
``__module_name__`` attribute. It was reverted due to the fact
104104
that 2.5 was already in beta by that time.
105105

106-
Patch 1487 [4] is the proposed implementation for this PEP.
106+
Patch 1487 [4]_ is the proposed implementation for this PEP.
107107

108108
Alternative Proposals
109109
=====================
@@ -125,7 +125,7 @@ References
125125
==========
126126

127127
.. [1] Absolute/relative import not working?
128-
(https://bugs.python.org/issue1510172)
128+
(https://github.com/python/cpython/issues/43535)
129129

130130
.. [2] c.l.p. question about modules and relative imports
131131
(http://groups.google.com/group/comp.lang.python/browse_thread/thread/c44c769a72ca69fa/)
@@ -134,7 +134,7 @@ References
134134
(https://mail.python.org/pipermail/python-3000/2007-April/006793.html)
135135

136136
.. [4] PEP 366 implementation patch
137-
(http://bugs.python.org/issue1487)
137+
(https://github.com/python/cpython/issues/45828)
138138

139139
.. [5] Acceptance of the PEP
140140
(https://mail.python.org/pipermail/python-dev/2007-November/075475.html)
@@ -143,11 +143,3 @@ Copyright
143143
=========
144144

145145
This document has been placed in the public domain.
146-
147-
..
148-
Local Variables:
149-
mode: indented-text
150-
indent-tabs-mode: nil
151-
sentence-end-double-space: t
152-
fill-column: 70
153-
End:

pep-0395.txt

+8-16
Original file line numberDiff line numberDiff line change
@@ -715,27 +715,19 @@ None as yet.
715715
References
716716
==========
717717

718-
.. [1] Module aliases and/or "real names"
719-
(https://mail.python.org/pipermail/python-ideas/2011-January/008983.html)
718+
.. [1] `Module aliases and/or "real names"
719+
<https://mail.python.org/pipermail/python-ideas/2011-January/008983.html>`__
720720

721-
.. [2] PEP 395 (Module aliasing) and the namespace PEPs
722-
(https://mail.python.org/pipermail/import-sig/2011-November/000382.html)
721+
.. [2] `PEP 395 (Module aliasing) and the namespace PEPs
722+
<https://mail.python.org/pipermail/import-sig/2011-November/000382.html>`__
723723

724-
.. [3] Updated PEP 395 (aka "Implicit Relative Imports Must Die!")
725-
(https://mail.python.org/pipermail/import-sig/2011-November/000397.html)
724+
.. [3] `Updated PEP 395 (aka "Implicit Relative Imports Must Die!")
725+
<https://mail.python.org/pipermail/import-sig/2011-November/000397.html>`__
726726

727-
.. [4] Elaboration of compatibility problems between this PEP and PEP 402
728-
(https://mail.python.org/pipermail/import-sig/2011-November/000403.html)
727+
* `Elaboration of compatibility problems between this PEP and PEP 402
728+
<https://mail.python.org/pipermail/import-sig/2011-November/000403.html>`__
729729

730730
Copyright
731731
=========
732732

733733
This document has been placed in the public domain.
734-
735-
..
736-
Local Variables:
737-
mode: indented-text
738-
indent-tabs-mode: nil
739-
sentence-end-double-space: t
740-
fill-column: 70
741-
End:

pep-0413.txt

+2-12
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ resolving this becomes even more critical. While Mercurial phases may
593593
help to some degree, it would be good to eliminate the problem entirely.
594594

595595
One suggestion from Barry Warsaw is to adopt a non-conflicting
596-
separate-files-per-change approach, similar to that used by Twisted [2_].
596+
separate-files-per-change approach, similar to that used by Twisted [2]_.
597597

598598
Given that the current manually updated NEWS file will be used for the 3.3.0
599599
release, one possible layout for such an approach might look like::
@@ -914,19 +914,9 @@ References
914914
==========
915915

916916
.. [2] Twisted's "topfiles" approach to NEWS generation
917-
http://twistedmatrix.com/trac/wiki/ReviewProcess#Newsfiles
917+
https://web.archive.org/web/20120305142914/http://twistedmatrix.com/trac/wiki/ReviewProcess#Newsfiles
918918

919919
Copyright
920920
=========
921921

922922
This document has been placed in the public domain.
923-
924-
925-
..
926-
Local Variables:
927-
mode: indented-text
928-
indent-tabs-mode: nil
929-
sentence-end-double-space: t
930-
fill-column: 70
931-
coding: utf-8
932-
End:

pep-0426.txt

+6-15
Original file line numberDiff line numberDiff line change
@@ -443,9 +443,9 @@ in Appendix A.
443443
Metadata validation
444444
-------------------
445445

446-
A `jsonschema <https://pypi.python.org/pypi/jsonschema>`__ description of
446+
A `jsonschema <https://pypi.org/project/jsonschema/>`__ description of
447447
the distribution metadata is `available
448-
<http://hg.python.org/peps/file/default/pep-0426/pydist-schema.json>`__.
448+
<https://hg.python.org/peps/file/default/pep-0426/pydist-schema.json>`__.
449449

450450
This schema does NOT currently handle validation of some of the more complex
451451
string fields (instead treating them as opaque strings).
@@ -1507,24 +1507,15 @@ Version 1.2 is specified in :pep:`345`.
15071507
The initial attempt at a standardised version scheme, along with the
15081508
justifications for needing such a standard can be found in :pep:`386`.
15091509

1510-
.. [1] reStructuredText markup:
1511-
http://docutils.sourceforge.net/
1510+
* `reStructuredText markup
1511+
<https://docutils.sourceforge.io/>`__
15121512

1513-
.. _Python Package Index: http://pypi.python.org/pypi/
1513+
.. _Python Package Index: https://pypi.org/
15141514

1515-
.. _TR39: http://www.unicode.org/reports/tr39/tr39-1.html#Confusable_Detection
1515+
.. _TR39: https://www.unicode.org/reports/tr39/tr39-1.html#Confusable_Detection
15161516

15171517

15181518
Copyright
15191519
=========
15201520

15211521
This document has been placed in the public domain.
1522-
1523-
1524-
..
1525-
Local Variables:
1526-
mode: indented-text
1527-
indent-tabs-mode: nil
1528-
sentence-end-double-space: t
1529-
fill-column: 70
1530-
End:

pep-0430.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Background
2828
==========
2929

3030
With the transition of the overall Python ecosystem from Python 2 to Python 3
31-
still in progress, one question which arises periodically [1_, 2_] is when
31+
still in progress, one question which arises periodically [1]_, [2]_ is when
3232
and how to handle the change from providing the Python 2 documentation as
3333
the default version displayed at the docs.python.org root URL to providing
3434
the Python 3 documentation.
@@ -77,7 +77,7 @@ the path component.
7777
Proposal
7878
========
7979

80-
This PEP (based on an idea originally put forward back in May [3_]) is to
80+
This PEP (based on an idea originally put forward back in May [3]_) is to
8181
*not migrate* the Python 2 specific deep links at all, and instead adopt a
8282
scheme where all URLs presented to users on docs.python.org are qualified
8383
appropriately with the relevant release series.

pep-0440.txt

+22-31
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ document are to be interpreted as described in :rfc:`2119`.
3939
Projects include Python libraries, frameworks, scripts, plugins,
4040
applications, collections of data or other resources, and various
4141
combinations thereof. Public Python projects are typically registered on
42-
the `Python Package Index <https://pypi.python.org>`__.
42+
the `Python Package Index <https://pypi.org/>`__.
4343

4444
"Releases" are uniquely identified snapshots of a project.
4545

@@ -762,7 +762,7 @@ specify the appropriate version order.
762762

763763
Specific build information may also be included in local version labels.
764764

765-
.. _Semantic versioning: http://semver.org/
765+
.. _Semantic versioning: https://semver.org/
766766

767767

768768
DVCS based version labels
@@ -1556,35 +1556,35 @@ References
15561556
The initial attempt at a standardised version scheme, along with the
15571557
justifications for needing such a standard can be found in :pep:`386`.
15581558

1559-
.. [1] Reference Implementation of PEP 440 Versions and Specifiers
1560-
https://github.com/pypa/packaging/pull/1
1559+
.. [2] `Version compatibility analysis script
1560+
<https://github.com/pypa/packaging/blob/master/tasks/check.py>`__
15611561

1562-
.. [2] Version compatibility analysis script:
1563-
https://github.com/pypa/packaging/blob/master/tasks/check.py
1562+
.. [4] `File URIs in Windows
1563+
<https://web.archive.org/web/20130321051043/http://blogs.msdn.com/b/ie/archive/2006/12/06/file-uris-in-windows.aspx>`__
15641564

1565-
.. [3] Pessimistic version constraint
1566-
http://docs.rubygems.org/read/chapter/16
1565+
.. [5] `Proof of Concept: PEP 440 within pip
1566+
<https://github.com/pypa/pip/pull/1894>`__
15671567

1568-
.. [4] File URIs in Windows
1569-
http://blogs.msdn.com/b/ie/archive/2006/12/06/file-uris-in-windows.aspx
1568+
.. [6] `PEP440: foo-X.Y.Z does not satisfy "foo>X.Y"
1569+
<https://mail.python.org/pipermail/distutils-sig/2014-December/025451.html>`__
15701570

1571-
.. [5] Proof of Concept: PEP 440 within pip
1572-
https://github.com/pypa/pip/pull/1894
1571+
.. [7] `PEP440: >1.7 vs >=1.7
1572+
<https://mail.python.org/pipermail/distutils-sig/2014-December/025507.html>`__
15731573

1574-
.. [6] PEP440: foo-X.Y.Z does not satisfy "foo>X.Y"
1575-
https://mail.python.org/pipermail/distutils-sig/2014-December/025451.html
1574+
.. [8] `Amend PEP 440 with Wider Feedback on Release Candidates
1575+
<https://mail.python.org/pipermail/distutils-sig/2014-December/025409.html>`__
15761576

1577-
.. [7] PEP440: >1.7 vs >=1.7
1578-
https://mail.python.org/pipermail/distutils-sig/2014-December/025507.html
1577+
.. [10] `PEP 440: regex should not permit Unicode [Nd] characters
1578+
<https://github.com/python/peps/pull/966>`__
15791579

1580-
.. [8] Amend PEP 440 with Wider Feedback on Release Candidates
1581-
https://mail.python.org/pipermail/distutils-sig/2014-December/025409.html
1580+
* `Reference Implementation of PEP 440 Versions and Specifiers
1581+
<https://github.com/pypa/packaging/pull/1>`__
15821582

1583-
.. [9] Changing the status of PEP 440 to Provisional
1584-
https://mail.python.org/pipermail/distutils-sig/2014-December/025412.html
1583+
* `Pessimistic version constraint
1584+
<https://web.archive.org/web/20130509214125/http://docs.rubygems.org/read/chapter/16>`__
15851585

1586-
.. [10] PEP 440: regex should not permit Unicode [Nd] characters
1587-
https://github.com/python/peps/pull/966
1586+
* `Changing the status of PEP 440 to Provisional
1587+
<https://mail.python.org/pipermail/distutils-sig/2014-December/025412.html>`__
15881588

15891589
Appendix A
15901590
==========
@@ -1659,12 +1659,3 @@ Copyright
16591659
=========
16601660

16611661
This document has been placed in the public domain.
1662-
1663-
1664-
..
1665-
Local Variables:
1666-
mode: indented-text
1667-
indent-tabs-mode: nil
1668-
sentence-end-double-space: t
1669-
fill-column: 70
1670-
End:

pep-0531.txt

+3-13
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ following characteristics:
5555
PEP Withdrawal
5656
==============
5757

58-
When posting this PEP for discussion on python-ideas [4_], I asked reviewers to
58+
When posting this PEP for discussion on python-ideas [4]_, I asked reviewers to
5959
consider 3 high level design questions before moving on to considering the
6060
specifics of this particular syntactic proposal:
6161

@@ -74,7 +74,7 @@ truth-checking "and" and "or" control flow operators were available?
7474
While the answers to the first question were generally positive, it quickly
7575
became clear that the answer to the second question is "No".
7676

77-
Steven D'Aprano articulated the counter-argument well in [5_], but the general
77+
Steven D'Aprano articulated the counter-argument well in [5]_, but the general
7878
idea is that when checking for "missing data" sentinels, we're almost always
7979
looking for a *specific* sentinel value, rather than *any* sentinel value.
8080

@@ -96,7 +96,7 @@ make sense, and it is accordingly withdrawn.
9696

9797
However, the discussion of the proposal did prompt consideration of a potential
9898
protocol based approach to make the existing ``and``, ``or`` and ``if-else``
99-
operators more flexible [6_] without introducing any new syntax, so I'll be
99+
operators more flexible [6]_ without introducing any new syntax, so I'll be
100100
writing that up as another possible alternative to :pep:`505`.
101101

102102

@@ -645,13 +645,3 @@ Copyright
645645

646646
This document has been placed in the public domain under the terms of the
647647
CC0 1.0 license: https://creativecommons.org/publicdomain/zero/1.0/
648-
649-
650-
..
651-
Local Variables:
652-
mode: indented-text
653-
indent-tabs-mode: nil
654-
sentence-end-double-space: t
655-
fill-column: 70
656-
coding: utf-8
657-
End:

pep-0535.txt

+1-11
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ operations would be the same as the existing expansion for ``and``.
8181
Rationale
8282
=========
8383

84-
In ultimately rejecting :pep:`335`, Guido van Rossum noted [1_]:
84+
In ultimately rejecting :pep:`335`, Guido van Rossum noted [1]_:
8585

8686
The NumPy folks brought up a somewhat separate issue: for them,
8787
the most common use case is chained comparisons (e.g. A < B < C).
@@ -187,13 +187,3 @@ Copyright
187187

188188
This document has been placed in the public domain under the terms of the
189189
CC0 1.0 license: https://creativecommons.org/publicdomain/zero/1.0/
190-
191-
192-
..
193-
Local Variables:
194-
mode: indented-text
195-
indent-tabs-mode: nil
196-
sentence-end-double-space: t
197-
fill-column: 70
198-
coding: utf-8
199-
End:

pep-3150.txt

+20-31
Original file line numberDiff line numberDiff line change
@@ -738,48 +738,37 @@ TO-DO
738738
References
739739
==========
740740

741-
.. [1] Explicitation lines in Python:
742-
https://mail.python.org/pipermail/python-ideas/2010-June/007476.html
741+
.. [1] `Explicitation lines in Python
742+
<https://mail.python.org/pipermail/python-ideas/2010-June/007476.html>`__
743743

744-
.. [2] 'where' statement in Python:
745-
https://mail.python.org/pipermail/python-ideas/2010-July/007584.html
744+
.. [2] `'where' statement in Python
745+
<https://mail.python.org/pipermail/python-ideas/2010-July/007584.html>`__
746746

747-
.. [3] Where-statement (Proposal for function expressions):
748-
https://mail.python.org/pipermail/python-ideas/2009-July/005132.html
747+
.. [3] `Where-statement (Proposal for function expressions)
748+
<https://mail.python.org/pipermail/python-ideas/2009-July/005132.html>`__
749749

750-
.. [4] Name conflict with NumPy for 'where' keyword choice:
751-
https://mail.python.org/pipermail/python-ideas/2010-July/007596.html
750+
.. [4] `Name conflict with NumPy for 'where' keyword choice
751+
<https://mail.python.org/pipermail/python-ideas/2010-July/007596.html>`__
752752

753-
.. [5] The "Status quo wins a stalemate" design principle:
754-
http://www.boredomandlaziness.org/2011/02/status-quo-wins-stalemate.html
753+
.. [6] `Assignments in list/generator expressions
754+
<https://mail.python.org/pipermail/python-ideas/2011-April/009863.html>`__
755755

756-
.. [6] Assignments in list/generator expressions:
757-
https://mail.python.org/pipermail/python-ideas/2011-April/009863.html
756+
.. [7] `Possible PEP 3150 style guidelines (#1)
757+
<https://mail.python.org/pipermail/python-ideas/2011-April/009869.html>`__
758758

759-
.. [7] Possible PEP 3150 style guidelines (#1):
760-
https://mail.python.org/pipermail/python-ideas/2011-April/009869.html
759+
.. [8] `Discussion of PEP 403 (statement local function definition)
760+
<https://mail.python.org/pipermail/python-ideas/2011-October/012276.html>`__
761761

762-
.. [8] Discussion of PEP 403 (statement local function definition):
763-
https://mail.python.org/pipermail/python-ideas/2011-October/012276.html
762+
.. [9] `Possible PEP 3150 style guidelines (#2)
763+
<https://mail.python.org/pipermail/python-ideas/2011-October/012341.html>`__
764764

765-
.. [9] Possible PEP 3150 style guidelines (#2):
766-
https://mail.python.org/pipermail/python-ideas/2011-October/012341.html
765+
* `The "Status quo wins a stalemate" design principle
766+
<https://www.curiousefficiency.org/posts/2011/02/status-quo-wins-stalemate.html>`__
767767

768-
.. [10] Multi-line lambdas (again!)
769-
https://mail.python.org/pipermail/python-ideas/2013-August/022526.html
768+
* `Multi-line lambdas (again!)
769+
<https://mail.python.org/pipermail/python-ideas/2013-August/022526.html>`__
770770

771771
Copyright
772772
=========
773773

774774
This document has been placed in the public domain.
775-
776-
777-
778-
..
779-
Local Variables:
780-
mode: indented-text
781-
indent-tabs-mode: nil
782-
sentence-end-double-space: t
783-
fill-column: 70
784-
coding: utf-8
785-
End:

0 commit comments

Comments
 (0)