[Python-checkins] peps: Tweak source encoding wording
nick.coghlan
python-checkins at python.org
Fri Aug 2 12:28:53 CEST 2013
http://hg.python.org/peps/rev/472583f06d4c
changeset: 5020:472583f06d4c
user: Nick Coghlan <ncoghlan at gmail.com>
date: Fri Aug 02 20:28:35 2013 +1000
summary:
Tweak source encoding wording
files:
pep-0008.txt | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/pep-0008.txt b/pep-0008.txt
--- a/pep-0008.txt
+++ b/pep-0008.txt
@@ -244,14 +244,15 @@
Note, some editors and web-based code viewers may not recognize
control-L as a form feed and will show another glyph in its place.
-Encodings (PEP 263)
--------------------
+
+Source File Encoding
+--------------------
Code in the core Python distribution should always use UTF-8 (or ASCII
in Python 2).
-Files using ASCII (in Python 2) or UTF-8 (in Python 3) should not have a
-coding cookie.
+Files using ASCII (in Python 2) or UTF-8 (in Python 3) should not have
+an encoding declaration.
In the standard library, non-default encodings should be used only for
test purposes or when a comment or docstring needs to mention an author
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list