]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-24563: Link encoding names to encoding declarations (GH-32274)
authorTerry Jan Reedy <tjreedy@udel.edu>
Sun, 3 Apr 2022 00:13:37 +0000 (20:13 -0400)
committerGitHub <noreply@github.com>
Sun, 3 Apr 2022 00:13:37 +0000 (20:13 -0400)
Doc/reference/lexical_analysis.rst

index b69d0fbdd41f84ddec9a3a937e19935d7189a8d8..dba1a9dd2e15a0aa64ddde7526e9c2c4087872c5 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: