]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-127833: Reword and expand the Notation section (GH-134443) (GH-135301)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 9 Jun 2025 13:56:24 +0000 (15:56 +0200)
committerGitHub <noreply@github.com>
Mon, 9 Jun 2025 13:56:24 +0000 (13:56 +0000)
commit8b35651853e8dec10d8a227f52a49ddd1a748904
tree6693f1a03a25a3e16eac949f0448ea5ca533e475
parent725ec53032a7a1bc7a4307fb9aae39cb22fd8971
[3.14] gh-127833: Reword and expand the Notation section (GH-134443) (GH-135301)

Prepare the docs for using the notation used in the `python.gram`
file. If we want to sync the two, the meta-syntax should be the same.

Link the Full Grammar docs here; keep only a few extras.

Also, remove the distinction between lexical and syntactic rules,
except for whitespace handling.
With f- and t-strings, the line between the two is blurry.
(cherry picked from commit 28d91d06f13ceda3df0cefacec497c370eff4802)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Blaise Pabon <blaise@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: Colin Marquardt <cmarqu42@gmail.com>
Doc/reference/grammar.rst
Doc/reference/introduction.rst