8000 PEP 635: fix duplicate labels (#2742) · python/peps@3d63099 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3d63099

Browse files
authored
PEP 635: fix duplicate labels (#2742)
1 parent b772305 commit 3d63099

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

pep-0635.rst

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ and not for individual patterns.
397397
return a + [p] + b
398398

399399

400-
.. _patterns:
400+
.. _635-patterns:
401401

402402
Patterns
403403
--------
@@ -586,7 +586,7 @@ without adding a significant benefit. It can always be added later.
586586
return expr
587587

588588

589-
.. _literal_pattern:
589+
.. _635-literal_pattern:
590590

591591
Literal Patterns
592592
~~~~~~~~~~~~~~~~
@@ -675,7 +675,7 @@ being.
675675
return expr
676676

677677

678-
.. _capture_pattern:
678+
.. _635-capture_pattern:
679679

680680
Capture Patterns
681681
~~~~~~~~~~~~~~~~
@@ -734,7 +734,7 @@ especially given that we expect capture patterns to be very common.
734734
return sum(a) / len(a)
735735

736736

737-
.. _wildcard_pattern:
737+
.. _635-wildcard_pattern:
738738

739739
Wildcard Pattern
740740
~~~~~~~~~~~~~~~~
@@ -901,7 +901,7 @@ Allowing users to explicitly specify the grouping is particularly helpful
901901
in case of OR patterns.
902902

903903

904-
.. _sequence_pattern:
904+
.. _635-sequence_pattern:
905905

906906
Sequence Patterns
907907
~~~~~~~~~~~~~~~~~
@@ -961,7 +961,7 @@ enumerate all other types that may be used to represent bytes
961961
(e.g. some, but not all, instances of ``memoryview`` and ``array.array``).
962962

963963

964-
.. _mapping_pattern:
964+
.. _635-mapping_pattern:
965965

966966
Mapping Patterns
967967
~~~~~~~~~~~~~~~~
@@ -1008,7 +1008,7 @@ unexpected side effect.
10081008
change_red_to_blue(child)
10091009

10101010

1011-
.. _class_pattern:
1011+
.. _635-class_pattern:
10121012

10131013
Class Patterns
10141014
~~~~~~~~~~~~~~
@@ -1278,13 +1278,3 @@ Copyright
12781278

12791279
This document is placed in the public domain or under the
12801280
CC0-1.0-Universal license, whichever is more permissive.
1281-
1282-
1283-
..
1284-
Local Variables:
1285-
mode: indented-text
1286-
indent-tabs-mode: nil
1287-
sentence-end-double-space: t
1288-
fill-column: 70
1289-
coding: utf-8
1290-
End:

0 commit comments

Comments
 (0)
0