Skip to content

Commit 01473dc

Browse files
authored
PEP 532, 577, 598: Fix footnotes references (#2791)
1 parent b88f26c commit 01473dc

File tree

3 files changed

+10
-41
lines changed

3 files changed

+10
-41
lines changed

pep-0532.txt

+3-13
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ PEP 335: Overloadable Boolean operators
107107
comparison chaining being one of the consequences of that change. The
108108
proposal in an earlier version of this PEP to instead handle the element-wise
109109
comparison use case by changing the semantic definition of comparison chaining
110-
is drawn directly from Guido's rejection of :pep:`335` [1_].
110+
is drawn directly from Guido's rejection of :pep:`335` [1]_.
111111

112112
However, initial feedback on this PEP indicated that the number of different
113113
proposals that it covered made it difficult to read, so that part of the
@@ -875,9 +875,9 @@ interest in the idea of making these changes.
875875
Acknowledgements
876876
================
877877

878-
Thanks go to Steven D'Aprano for his detailed critique [2_] of the initial
878+
Thanks go to Steven D'Aprano for his detailed critique [2]_ of the initial
879879
draft of this PEP that inspired many of the changes in the second draft, as
880-
well as to all of the other participants in that discussion thread [3_]
880+
well as to all of the other participants in that discussion thread [3]_.
881881

882882

883883
References
@@ -897,13 +897,3 @@ Copyright
897897

898898
This document has been placed in the public domain under the terms of the
899899
CC0 1.0 license: https://creativecommons.org/publicdomain/zero/1.0/
900-
901-
902-
..
903-
Local Variables:
904-
mode: indented-text
905-
indent-tabs-mode: nil
906-
sentence-end-double-space: t
907-
fill-column: 70
908-
coding: utf-8
909-
End:

pep-0577.rst

+3-14
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ Ignoring scoped expressions when determining augmented assignment targets
490490
-------------------------------------------------------------------------
491491

492492
When discussing possible binding semantics for :pep:`572`'s assignment expressions,
493-
Tim Peters made a plausible case [1_,2_,3_] for assignment expressions targeting
493+
Tim Peters made a plausible case [1]_, [2]_, [3]_ for assignment expressions targeting
494494
the containing block scope, essentially ignoring any intervening scoped
495495
expressions.
496496

@@ -505,7 +505,7 @@ way::
505505
while any(n % (factor := p) == 0 for p in small_primes):
506506
n //= factor
507507

508-
Guido also expressed his approval for this general approach [4_].
508+
Guido also expressed his approval for this general approach [4]_.
509509

510510
The proposal in this PEP differs from Tim's original proposal in three main
511511
areas:
@@ -536,7 +536,7 @@ One of the challenges with :pep:`572` is the fact that ``NAME = EXPR`` and
536536
makes the two forms hard to teach, since there's no inherent nudge towards
537537
choosing one over the other at the statement level, so you end up having to
538538
resort to "``NAME = EXPR`` is preferred because it's been around longer"
539-
(and :pep:`572` proposes to enfore that historical idiosyncrasy at the compiler
539+
(and :pep:`572` proposes to enforce that historical idiosyncrasy at the compiler
540540
level).
541541

542542
That semantic equivalence is difficult to avoid at module and class scope while
@@ -820,14 +820,3 @@ Copyright
820820
=========
821821

822822
This document has been placed in the public domain.
823-
824-
825-
826-
..
827-
Local Variables:
828-
mode: indented-text
829-
indent-tabs-mode: nil
830-
sentence-end-double-space: t
831-
fill-column: 70
832-
coding: utf-8
833-
End:

pep-0598.rst

+4-14
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ proposal in :pep:`605`.
3636
However, the concerns raised in this PEP are likely to apply to any other
3737
"Long Term Support branch" proposals that allow feature backports to improve
3838
the developer experience of supporting such releases (such as the EL Python
39-
draft at [3_]), so the ideas presented here may provide useful design
39+
draft at [3]_), so the ideas presented here may provide useful design
4040
suggestions for such proposals.
4141

4242

@@ -612,7 +612,7 @@ in that release series.
612612
Implications for the proposed Scientific Python ecosystem support period
613613
------------------------------------------------------------------------
614614

615-
Based on discussions at SciPy 2019, a NEP is currently being drafted [2_] to
615+
Based on discussions at SciPy 2019, a NEP is currently being drafted [2]_ to
616616
define a common convention across the Scientific Python ecosystem for dropping
617617
support for older Python versions.
618618

@@ -833,7 +833,7 @@ the subsequent October 2022 baseline feature release, as there are already inher
833833
compatibility risks associated with the choice of either "Python 4.0" (erroneous
834834
checks for the major version being exactly 3 rather than 3 or greater), or
835835
"Python 3.10" (code incorrectly assuming that the minor version will always
836-
contain exactly one decimal digit) [1_].
836+
contain exactly one decimal digit) [1]_.
837837

838838
While the text of this PEP assumes that the release published in 2022 will be
839839
3.10 (as the PEP author personally considers that the more reasonable and most
@@ -883,7 +883,7 @@ References
883883
==========
884884

885885
.. [1] Anthony Sottile created a pseudo "Python 3.10" to find and fix such issues
886-
(https://github.com/asottile/python3.10)
886+
(https://github.com/asottile-archive/python3.10)
887887
888888
.. [2] NEP proposing a standard policy for dropping support of old Python versions
889889
(https://github.com/numpy/numpy/pull/14086)
@@ -895,13 +895,3 @@ Copyright
895895
=========
896896

897897
This document has been placed in the public domain.
898-
899-
900-
..
901-
Local Variables:
902-
mode: indented-text
903-
indent-tabs-mode: nil
904-
sentence-end-double-space: t
905-
fill-column: 80
906-
coding: utf-8
907-
End:

0 commit comments

Comments
 (0)