[Python-checkins] bpo-24563: Link encoding names to encoding declarations (GH-32274)

terryjreedy webhook-mailer at python.org
Sat Apr 2 20:13:46 EDT 2022


https://github.com/python/cpython/commit/01be5d6446abbdd95d0c18bd19a58a62b05568d8
commit: 01be5d6446abbdd95d0c18bd19a58a62b05568d8
branch: main
author: Terry Jan Reedy <tjreedy at udel.edu>
committer: terryjreedy <tjreedy at udel.edu>
date: 2022-04-02T20:13:37-04:00
summary:

bpo-24563: Link encoding names to encoding declarations (GH-32274)

files:
M Doc/reference/lexical_analysis.rst

diff --git a/Doc/reference/lexical_analysis.rst b/Doc/reference/lexical_analysis.rst
index b69d0fbdd41f8..dba1a9dd2e15a 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:
 



More information about the Python-checkins mailing list