8000 bpo-32963: Fix the tutorial to state source has a default encoding of… · python/cpython@20003f9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 20003f9

Browse files
authored
bpo-32963: Fix the tutorial to state source has a default encoding of ASCII (GH-5961)
1 parent aa40f92 commit 20003f9

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Doc/tutorial/interpreter.rst

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,7 @@ The Interpreter and Its Environment
126126
Source Code Encoding
127127
--------------------
128128

129-
By default, Python source files are treated as encoded in UTF-8. In that
130-
encoding, characters of most languages in the world can be used simultaneously
131-
in string literals, identifiers and comments --- although the standard library
132-
only uses ASCII characters for identifiers, a convention that any portable code
133-
should follow. To display all these characters properly, your editor must
134-
recognize that the file is UTF-8, and it must use a font that supports all the
135-
characters in the file.
136-
129+
By default, Python source files are treated as encoded in ASCII.
137130
To declare an encoding other than the default one, a special comment line
138131
should be added as the *first* line of the file. The syntax is as follows::
139132

0 commit comments

Comments
 (0)
0