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

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 01be5d6

Browse files
authored
bpo-24563: Link encoding names to encoding declarations (GH-32274)
1 parent ebbdbbf commit 01be5d6<
8000
div>

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