[Python-checkins] r67336 - python/trunk/Doc/howto/unicode.rst
georg.brandl
python-checkins at python.org
Sat Nov 22 11:08:51 CET 2008
Author: georg.brandl
Date: Sat Nov 22 11:08:50 2008
New Revision: 67336
Log:
Fix error about "-*-" being mandatory in coding cookies.
Modified:
python/trunk/Doc/howto/unicode.rst
Modified: python/trunk/Doc/howto/unicode.rst
==============================================================================
--- python/trunk/Doc/howto/unicode.rst (original)
+++ python/trunk/Doc/howto/unicode.rst Sat Nov 22 11:08:50 2008
@@ -410,9 +410,9 @@
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
More information about the Python-checkins
mailing list