Skip to content

Commit da26496

Browse files
committed
Add back old HTML IDs; exclude old grammar tokens
1 parent 336ac3d commit da26496

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

Doc/reference/expressions.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ Formally:
332332
single: parenthesized form
333333
single: () (parentheses)
334334

335+
.. _parenthesized-forms:
335336
.. _parenthesized:
336337

337338
Parenthesized groups
@@ -365,7 +366,7 @@ Formally, the syntax for groups is:
365366

366367
group: '(' `assignment_expression` ')'
367368

368-
369+
.. _displays-for-lists-sets-and-dictionaries:
369370
.. _displays:
370371

371372
Container displays
@@ -642,7 +643,6 @@ This may be used to override a set of defaults::
642643
.. versionadded:: 3.5
643644
Unpacking into dictionary displays, originally proposed by :pep:`448`.
644645

645-
646646
The formal grammar for dict displays is:
647647

648648
.. grammar-snippet::
@@ -924,6 +924,7 @@ execution of the coroutine function in which it appears.
924924
asynchronous functions. Outer comprehensions implicitly become
925925
asynchronous.
926926

927+
.. _comprehension-grammar:
927928

928929
Formal grammar for comprehensions
929930
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Doc/tools/removed-ids.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
11
# HTML IDs excluded from the check-html-ids.py check.
2+
3+
4+
## Old names for grammar tokens
5+
reference/expressions.html: grammar-token-python-grammar-comp_for
6+
reference/expressions.html: grammar-token-python-grammar-comp_if
7+
reference/expressions.html: grammar-token-python-grammar-comp_iter
8+
reference/expressions.html: grammar-token-python-grammar-dict_comprehension
9+
reference/expressions.html: grammar-token-python-grammar-dict_display
10+
reference/expressions.html: grammar-token-python-grammar-dict_item
11+
reference/expressions.html: grammar-token-python-grammar-dict_item_list
12+
reference/expressions.html: grammar-token-python-grammar-enclosure
13+
reference/expressions.html: grammar-token-python-grammar-list_display
14+
reference/expressions.html: grammar-token-python-grammar-parenth_form
15+
reference/expressions.html: grammar-token-python-grammar-set_display

0 commit comments

Comments
 (0)