]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-32963: Fix the tutorial to state source has a default encoding of ASCII (GH-5961)
authorBrett Cannon <brettcannon@users.noreply.github.com>
Fri, 2 Mar 2018 22:10:21 +0000 (14:10 -0800)
committerGitHub <noreply@github.com>
Fri, 2 Mar 2018 22:10:21 +0000 (14:10 -0800)
Doc/tutorial/interpreter.rst

index 3bf9c62ca87cc1d77940160e73c7bc72814d04a1..6c8609fabaeb52362ff439632c07ff8f170eecca 100644 (file)
@@ -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::