Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f1dd4bcf
Commit
f1dd4bcf
authored
Nov 22, 2008
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix error about "-*-" being mandatory in coding cookies.
parent
5ecd7452
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Doc/howto/unicode.rst
Doc/howto/unicode.rst
+3
-3
No files found.
Doc/howto/unicode.rst
View file @
f1dd4bcf
...
...
@@ -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 t
hat the comment is special; within
the
m, you must supply the name ``coding`` and the name of your chosen encoding,
separated by ``':'``
.
'coding'. The ``-*-`` symbols indicate t
o Emacs that the comment is special;
the
y 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment