Skip to content

Commit cf3b2e1

Browse files
authored
PEP 634: Fix duplicate labels (#2735)
1 parent fb6151d commit cf3b2e1

File tree

1 file changed

+10
-20
lines changed

1 file changed

+10
-20
lines changed

pep-0634.rst

+10-20
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ introduction to the concepts, syntax and semantics of patterns.
3535
Syntax and Semantics
3636
====================
3737

38-
See `Appendix A`_ for the complete grammar.
38+
See :ref:`Appendix A <634-appendix-a>` for the complete grammar.
3939

4040
Overview and Terminology
4141
------------------------
@@ -134,7 +134,7 @@ The precise pattern binding rules vary per pattern type and are
134134
specified below.
135135

136136

137-
.. _guards:
137+
.. _634-guards:
138138

139139
Guards
140140
^^^^^^
@@ -169,7 +169,7 @@ A match statement may have at most one irrefutable case block, and it
169169
must be last.
170170

171171

172-
.. _patterns:
172+
.. _634-patterns:
173173

174174
Patterns
175175
--------
@@ -225,7 +225,7 @@ until one succeeds. The OR pattern is then deemed to succeed.
225225
If none of the subpatterns succeed the OR pattern fails.
226226

227227

228-
.. _literal_pattern:
228+
.. _634-literal_pattern:
229229

230230
Literal Patterns
231231
^^^^^^^^^^^^^^^^
@@ -261,7 +261,7 @@ value expressed by the literal, using the following comparisons rules:
261261
using the ``is`` operator.
262262

263263

264-
.. _capture_pattern:
264+
.. _634-capture_pattern:
265265

266266
Capture Patterns
267267
^^^^^^^^^^^^^^^^
@@ -284,7 +284,7 @@ disallows for example ``case x, x: ...`` but allows ``case [x] | x:
284284
...``.
285285

286286

287-
.. _wildcard_pattern:
287+
.. _634-wildcard_pattern:
288288

289289
Wildcard Pattern
290290
^^^^^^^^^^^^^^^^
@@ -331,7 +331,7 @@ A parenthesized pattern has no additional syntax. It allows users to
331331
add parentheses around patterns to emphasize the intended grouping.
332332

333333

334-
.. _sequence_pattern:
334+
.. _634-sequence_pattern:
335335

336336
Sequence Patterns
337337
^^^^^^^^^^^^^^^^^
@@ -411,7 +411,7 @@ then matched to the corresponding subject items, as for a fixed-length
411411
sequence.
412412

413413

414-
.. _mapping_pattern:
414+
.. _634-mapping_pattern:
415415

416416
Mapping Patterns
417417
^^^^^^^^^^^^^^^^
@@ -466,7 +466,7 @@ with keys that were already present when the match statement was
466466
entered.
467467

468468

469-
.. _class_pattern:
469+
.. _634-class_pattern:
470470

471471
Class Patterns
472472
^^^^^^^^^^^^^^
@@ -592,7 +592,7 @@ existing standard library classes and adding ``__match_args__`` where
592592
it looks beneficial.
593593

594594

595-
.. _Appendix A:
595+
.. _634-appendix-a:
596596

597597
Appendix A -- Full Grammar
598598
==========================
@@ -682,13 +682,3 @@ Copyright
682682

683683
This document is placed in the public domain or under the
684684
CC0-1.0-Universal license, whichever is more permissive.
685-
686-
687-
..
688-
Local Variables:
689-
mode: indented-text
690-
indent-tabs-mode: nil
691-
sentence-end-double-space: t
692-
fill-column: 70
693-
coding: utf-8
694-
End:

0 commit comments

Comments
 (0)