diff options
author | Georg Brandl <georg@python.org> | 2008-11-22 10:08:50 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-11-22 10:08:50 (GMT) |
commit | f1dd4bcf39382d896677f73267f8be895ca1c7b5 (patch) | |
tree | eb8951fe47777e65897ad4e9bba628222ea63bfc | |
parent | 5ecd7452ec2fafc4ff4addb8d56361a379708eb8 (diff) | |
download | cpython-f1dd4bcf39382d896677f73267f8be895ca1c7b5.zip cpython-f1dd4bcf39382d896677f73267f8be895ca1c7b5.tar.gz cpython-f1dd4bcf39382d896677f73267f8be895ca1c7b5.tar.bz2 |
Fix error about "-*-" being mandatory in coding cookies.
-rw-r--r-- | Doc/howto/unicode.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/howto/unicode.rst b/Doc/howto/unicode.rst index 21ae111..561ce29 100644 --- a/Doc/howto/unicode.rst +++ b/Doc/howto/unicode.rst @@ -410,9 +410,9 @@ either the first or second line of the source file:: The syntax is inspired by Emacs's notation for specifying variables local to a file. Emacs supports many different variables, but Python only supports -'coding'. The ``-*-`` symbols indicate that the comment is special; within -them, you must supply the name ``coding`` and the name of your chosen encoding, -separated by ``':'``. +'coding'. The ``-*-`` symbols indicate to Emacs that the comment is special; +they have no significance to Python but are a convention. Python looks for +``coding: name`` or ``coding=name`` in the comment. If you don't include such a comment, the default encoding used will be ASCII. Versions of Python before 2.4 were Euro-centric and assumed Latin-1 as a default |