summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-04-03 00:40:31 (GMT)
committerGitHub <noreply@github.com>2022-04-03 00:40:31 (GMT)
commitf4e280d8c5461fa5e928fa07f6cd1779a4ac43ba (patch)
tree4b6a480b5625e816524e34f4562f4ad519cb2e38
parent6eff004b96ae9cdca1b36600fe1098498228f66d (diff)
downloadcpython-f4e280d8c5461fa5e928fa07f6cd1779a4ac43ba.zip
cpython-f4e280d8c5461fa5e928fa07f6cd1779a4ac43ba.tar.gz
cpython-f4e280d8c5461fa5e928fa07f6cd1779a4ac43ba.tar.bz2
bpo-24563: Link encoding names to encoding declarations (GH-32274)
(cherry picked from commit 01be5d6446abbdd95d0c18bd19a58a62b05568d8) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
-rw-r--r--Doc/reference/lexical_analysis.rst5
1 files changed, 2 insertions, 3 deletions
diff --git a/Doc/reference/lexical_analysis.rst b/Doc/reference/lexical_analysis.rst
index 77e0578..17c0fb4 100644
--- a/Doc/reference/lexical_analysis.rst
+++ b/Doc/reference/lexical_analysis.rst
@@ -101,12 +101,11 @@ addition, if the first bytes of the file are the UTF-8 byte-order mark
(``b'\xef\xbb\xbf'``), the declared file encoding is UTF-8 (this is supported,
among others, by Microsoft's :program:`notepad`).
-If an encoding is declared, the encoding name must be recognized by Python. The
+If an encoding is declared, the encoding name must be recognized by Python
+(see :ref:`standard-encodings`). The
encoding is used for all lexical analysis, including string literals, comments
and identifiers.
-.. XXX there should be a list of supported encodings.
-
.. _explicit-joining: