]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-24563: Link encoding names to encoding declarations (GH-32274)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 3 Apr 2022 00:40:31 +0000 (17:40 -0700)
committerGitHub <noreply@github.com>
Sun, 3 Apr 2022 00:40:31 +0000 (17:40 -0700)
(cherry picked from commit 01be5d6446abbdd95d0c18bd19a58a62b05568d8)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Doc/reference/lexical_analysis.rst

index 77e0578f5d89b65dd4f8ba7caa19fabb32349beb..17c0fb4a51eb4fb8e1926e17f95c08fcf544e442 100644 (file)
@@ -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: