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

This commit is contained in:
Terry Jan Reedy 2022-04-02 20:13:37 -04:00 committed by GitHub
parent ebbdbbff5d
commit 01be5d6446
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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: