cpython/Doc/reference
Petr Viktorin f0a0467c17
gh-143054: Disallow non-top-level Cut for now (GH-143622)
The behaviour of Cut in nested parentheses, Repeat, Opt, and similar
is somewhat chaotic. Apparently even the academic papers on PEG aren't
as clear as they could be.

And it doesn't really matter. Python only uses top-level cuts.
When that changes, we can clarify as much as necessary (and even
change the implementation to make sense for what we'll need).

Document that this is deliberately unspecified, and add a test to
make sure any decision is deliberate, tested and documented.
2026-01-13 13:21:59 +01:00
..
compound_stmts.rst Add missing comma to tuple in except* docs (#142395) 2025-12-14 00:51:35 +02:00
datamodel.rst gh-128335: Make slice generic at runtime (#128336) 2026-01-11 11:27:24 -08:00
executionmodel.rst gh-135944: Add a "Runtime Components" Section to the Execution Model Docs (gh-135945) 2025-10-02 09:13:22 -06:00
expressions.rst gh-135676: Reword the f-string (and t-string) section (GH-137469) 2025-12-03 16:14:53 +01:00
grammar.rst gh-143054: Disallow non-top-level Cut for now (GH-143622) 2026-01-13 13:21:59 +01:00
import.rst gh-69686: Remove untrue part of __import__ replacement docs (#143261) 2025-12-29 21:16:54 -08: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 gh-135676: Lexical analysis: Reword String literals and related sections (GH-135942) 2025-07-23 15:57:54 +00:00
lexical_analysis.rst typo fixes in docs (#142683) 2025-12-14 13:47:22 +05:30
simple_stmts.rst gh-138871: Clarify NameError exception in 'del' (#138881) 2025-09-15 02:11:01 -04:00
toplevel_components.rst gh-130587: Add hand-written docs for non-OP tokens (GH-130588) 2025-03-19 16:42:11 +01:00