cpython/Doc/reference
Miss Islington (bot) 9a1f30fd28
[3.14] Link to existing rules in compound_stmts.rst (GH-149811) (GH-149837)
Link to existing rules in compound_stmts.rst (GH-149811)

In gh-138418, `!` was added to links to rules that don't exist in
the docs, in order to silence broken link warnings.
However, productionlist doesn't parse the `!`, which ends up in
the rendered documentation. (It's possible that gh-127835 broke
the `!` support.)

Replace the names with ones that appear in docs:

- `star_named_expression` in the grammar corresponds to
  `flexible_expression` in the docs
- `star_named_expressions` in the grammar corresponds to
  `flexible_expression_list` in the docs
- `named_expression` in the grammar corresponds to
  `assignment_expression` in the docs

Having two sets of names isn't great of course. Consolidating them
is tracked in (subissues of) gh-127833.
(cherry picked from commit c37529293d)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2026-05-14 19:09:15 +02:00
..
compound_stmts.rst [3.14] Link to existing rules in compound_stmts.rst (GH-149811) (GH-149837) 2026-05-14 19:09:15 +02:00
datamodel.rst [3.14] gh-145305: Update ocert.org URLs in docs from http to https (GH-145304) (GH-145322) 2026-03-23 23:36:40 +01:00
executionmodel.rst [3.14] gh-135944: Add a "Runtime Components" Section to the Execution Model Docs (gh-135945) (#139509) 2025-10-07 19:19:42 +01:00
expressions.rst [3.14] gh-141984: Reword and reorganize the first part of Atoms docs (GH-144117) (GH-144959) 2026-02-18 17:59:17 +01:00
grammar.rst [3.14] gh-143054: Disallow non-top-level Cut for now (GH-143622) (GH-143790) 2026-01-15 13:52:39 +01:00
import.rst [3.14] gh-69686: Remove untrue part of __import__ replacement docs (GH-143261) (#143281) 2025-12-30 05:22:38 +00:00
index.rst Merge from 3.2: remove unneeded "Release" and "Date" markers from index pages. 2012-10-28 11:10:24 -07:00
introduction.rst [3.14] gh-135676: Lexical analysis: Reword String literals and related sections (GH-135942) (#137048) 2025-07-23 19:23:25 +03:00
lexical_analysis.rst [3.14] Docs: Fix a typo in the 'Non-ASCII characters in names' section (GH-148043) (#148099) 2026-04-04 16:51:39 +00:00
simple_stmts.rst [3.14] gh-137337: Clarify import statement namespace binding (GH-144607) (GH-149369) 2026-05-04 14:52:50 +00:00
toplevel_components.rst gh-130587: Add hand-written docs for non-OP tokens (GH-130588) 2025-03-19 16:42:11 +01:00