Skip to content

Commit

Permalink
bpo-24563: Link encoding names to encoding declarations (GH-32274)
Browse files Browse the repository at this point in the history
  • Loading branch information
terryjreedy committed Apr 3, 2022
1 parent ebbdbbf commit 01be5d6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Doc/reference/lexical_analysis.rst
Expand Up @@ -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:

Expand Down

0 comments on commit 01be5d6

Please sign in to comment.