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

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