cpython/Doc/tools
Petr Viktorin d842895a9d
[3.15] gh-141984: Reword docs on "enclosed" atom grammar (GH-148622) (GH-150552)
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>
2026-05-29 10:09:38 +02:00
..
extensions [3.15] gh-142349: Add help("lazy") support (GH-149886) (#149889) 2026-05-15 16:57:59 +00:00
static Revert "Doc: Show object descriptions in the table of contents (#125757)" (#128406) 2025-01-02 14:35:00 +00:00
templates [3.15] gh-149902: Remove dead packaging docs link and add a new section for external resources (GH-150030) (#150241) 2026-05-22 11:40:49 +00:00
.nitignore Docs: fill in descriptor C API docs (GH-146644) 2026-03-31 17:52:11 -04:00
check-epub.py GH-136155: Fail the EPUB check on fatal errors (#137351) 2025-08-08 02:32:20 +01:00
check-html-ids.py gh-145000: Run check-html-ids.py in CI (#145632) 2026-04-01 15:10:27 +02:00
check-warnings.py Update pre-commit with zizmor and Ruff fixes (#143095) 2025-12-23 17:51:02 +02:00
removed-ids.txt [3.15] gh-141984: Reword docs on "enclosed" atom grammar (GH-148622) (GH-150552) 2026-05-29 10:09:38 +02:00