diff options
author | Brett Cannon <brettcannon@users.noreply.github.com> | 2018-03-02 22:10:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-02 22:10:21 (GMT) |
commit | 20003f9162631c47b79202316036d13d74484e4c (patch) | |
tree | 4f26699661a7110f4a56f7912dfdc7dd6a065052 | |
parent | aa40f92240adea7067c3add8e09cec09dcf24d7f (diff) | |
download | cpython-20003f9162631c47b79202316036d13d74484e4c.zip cpython-20003f9162631c47b79202316036d13d74484e4c.tar.gz cpython-20003f9162631c47b79202316036d13d74484e4c.tar.bz2 |
bpo-32963: Fix the tutorial to state source has a default encoding of ASCII (GH-5961)
-rw-r--r-- | Doc/tutorial/interpreter.rst | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Doc/tutorial/interpreter.rst b/Doc/tutorial/interpreter.rst index 3bf9c62..6c8609f 100644 --- a/Doc/tutorial/interpreter.rst +++ b/Doc/tutorial/interpreter.rst @@ -126,14 +126,7 @@ The Interpreter and Its Environment Source Code Encoding -------------------- -By default, Python source files are treated as encoded in UTF-8. In that -encoding, characters of most languages in the world can be used simultaneously -in string literals, identifiers and comments --- although the standard library -only uses ASCII characters for identifiers, a convention that any portable code -should follow. To display all these characters properly, your editor must -recognize that the file is UTF-8, and it must use a font that supports all the -characters in the file. - +By default, Python source files are treated as encoded in ASCII. To declare an encoding other than the default one, a special comment line should be added as the *first* line of the file. The syntax is as follows:: |