mirror of
https://github.com/python/cpython.git
synced 2026-06-28 11:50:50 +00:00
Reorganize and reword the docs on atoms in parentheses, brackets and braces:
parenthesized groups, list/set/dict/tuple displays, and comprehensions.
(Generator expressions and yield atoms are left for later.)
In the spirit of better matching the underlying grammar, *comprehensions* are
covered separately from non-comprehension displays. Also, parenthesized forms
(with a single expression) and tuple displays are separated.
All sections are rewritten to start with simple cases and build up to the full
formal grammar.
(cherry picked from commit 55f2518326)
Co-authored-by: Blaise Pabon <blaise@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
20 lines
1,001 B
Text
20 lines
1,001 B
Text
# HTML IDs excluded from the check-html-ids.py check.
|
|
|
|
# Remove from here in 3.16
|
|
c-api/allocation.html: deprecated-aliases
|
|
c-api/file.html: deprecated-api
|
|
|
|
library/asyncio-task.html: terminating-a-task-group
|
|
|
|
## Old names for grammar tokens
|
|
reference/expressions.html: grammar-token-python-grammar-comp_for
|
|
reference/expressions.html: grammar-token-python-grammar-comp_if
|
|
reference/expressions.html: grammar-token-python-grammar-comp_iter
|
|
reference/expressions.html: grammar-token-python-grammar-dict_comprehension
|
|
reference/expressions.html: grammar-token-python-grammar-dict_display
|
|
reference/expressions.html: grammar-token-python-grammar-dict_item
|
|
reference/expressions.html: grammar-token-python-grammar-dict_item_list
|
|
reference/expressions.html: grammar-token-python-grammar-enclosure
|
|
reference/expressions.html: grammar-token-python-grammar-list_display
|
|
reference/expressions.html: grammar-token-python-grammar-parenth_form
|
|
reference/expressions.html: grammar-token-python-grammar-set_display
|