]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Link to existing rules in compound_stmts.rst (GH-149811)
authorPetr Viktorin <encukou@gmail.com>
Thu, 14 May 2026 16:47:52 +0000 (18:47 +0200)
committerGitHub <noreply@github.com>
Thu, 14 May 2026 16:47:52 +0000 (18:47 +0200)
commitc37529293d1e05081cb4e8668162c76583b88007
tree32004f0ecb4a79c2f12ac9c6db6f2e2c0ca0327b
parentc6f7368157ecf9f2cdd537d8b6fad6e011bce344
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.
Doc/reference/compound_stmts.rst