summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2022-04-03 00:13:37 (GMT)
committerGitHub <noreply@github.com>2022-04-03 00:13:37 (GMT)
commit01be5d6446abbdd95d0c18bd19a58a62b05568d8 (patch)
tree9e8c4a2a4af5c8300e80a8898d8b24e906b6c433 /Doc/reference
parentebbdbbff5d6840807e46ec61b8a323e94ee88de2 (diff)
downloadcpython-01be5d6446abbdd95d0c18bd19a58a62b05568d8.zip
cpython-01be5d6446abbdd95d0c18bd19a58a62b05568d8.tar.gz
cpython-01be5d6446abbdd95d0c18bd19a58a62b05568d8.tar.bz2
bpo-24563: Link encoding names to encoding declarations (GH-32274)
Diffstat (limited to 'Doc/reference')
-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 b69d0fb..dba1a9d 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: