8000 bpo-24563: Link encoding names to encoding declarations (GH-32274) · python/cpython@f4e280d · GitHub
[go: up one dir, main page]

Skip to content

Commit f4e280d

Browse files
bpo-24563: Link encoding names to encoding declarations (GH-32274)
(cherry picked from commit 01be5d6) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
1 parent 6eff004 commit f4e280d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Doc/reference/lexical_analysis.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,11 @@ addition, if the first bytes of the file are the UTF-8 byte-order mark
101101
(``b'\xef\xbb\xbf'``), the declared file encoding is UTF-8 (this is supported,
102102
among others, by Microsoft's :program:`notepad`).
103103

104-
If an encoding is declared, the encoding name must be recognized by Python. The
104+
If an encoding is declared, the encoding name must be recognized by Python
105+
(see :ref:`standard-encodings`). The
105106
encoding is used for all lexical analysis, including string literals, comments
106107
and identifiers.
107108

108-
.. XXX there should be a list of supported encodings.
109-
110109

111110
.. _explicit-joining:
112111

0 commit comments

Comments
 (0)
0