cpython/Doc/reference
Miss Islington (bot) 4da3e91363
[3.13] Link to existing rules in compound_stmts.rst (GH-149811) (GH-149838)
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:34:29 +02:00
..
compound_stmts.rst [3.13] Link to existing rules in compound_stmts.rst (GH-149811) (GH-149838) 2026-05-14 19:34:29 +02:00
datamodel.rst [3.13] gh-145305: Update ocert.org URLs in docs from http to https (GH-145304) (GH-145323) 2026-03-24 02:51:43 +01:00
executionmodel.rst [3.13] gh-135944: Add a "Runtime Components" Section to the Execution Model Docs (gh-135945) (#139510) 2026-04-30 10:42:34 +00:00
expressions.rst [3.13] gh-97914: Reword misleading sentence on conditional expressions (GH-139064) (#140094) 2025-10-14 08:29:16 +00:00
grammar.rst Docs: Add label to grammar spec for linking from PEPs (#113235) 2023-12-17 12:23:14 -07:00
import.rst [3.13] gh-69686: Remove untrue part of __import__ replacement docs (GH-143261) (#143282) 2025-12-30 05:22:47 +00:00
index.rst
introduction.rst [3.13] GH-103484: Fix permanently redirects reported by linkcheck (GH-124144) (#124151) 2024-09-24 00:43:04 +00:00
lexical_analysis.rst [3.13] gh-127833: lexical analysis: Add backticks to BOM example (GH-132407) (#133633) 2025-05-08 01:42:05 +00:00
simple_stmts.rst [3.13] gh-137337: Clarify import statement namespace binding (GH-144607) (GH-149370) 2026-05-04 14:52:02 +00:00
toplevel_components.rst GH-97950: Use new-style index directive ('builtin') (#104164) 2023-05-06 06:54:08 +03:00