]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-116666: Add "token" glossary term (GH-130888) (GH-131368)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 18 Mar 2025 11:51:09 +0000 (12:51 +0100)
committerGitHub <noreply@github.com>
Tue, 18 Mar 2025 11:51:09 +0000 (12:51 +0100)
commit7a8097c57a7f1e72a2c0780b1190d6148486d924
treee9decb63e99ab7ff99190cf42dc166460ea13822
parent9d23a6d57bbddfecf141b8cb145fc0cc784fc565
[3.12] gh-116666: Add "token" glossary term (GH-130888) (GH-131368)

gh-116666: Add "token" glossary term (GH-130888)

Add glossary entry for `token`, and link to it.
Avoid talking about tokens in the SyntaxError intro (errors.rst); at this point
tokenization is too much of a technical detail. (Even to an advanced reader,
the fact that a *single* token is highlighted isn't too relevant. Also, we don't
need to guarantee that it's a single token.)
(cherry picked from commit 30d52058493e07fd1d3efea960482f4001bd2f86)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Doc/glossary.rst
Doc/reference/lexical_analysis.rst
Doc/tutorial/errors.rst
Doc/tutorial/interactive.rst