[Tutor] encoding question

Danny Yoo dyoo at hashcollision.org
Sun Jan 5 03:50:41 CET 2014


You were asking earlier about the line:

    # -*- coding : utf -8 -*-

See PEP 263:

    http://www.python.org/dev/peps/pep-0263/
    http://docs.python.org/release/2.3/whatsnew/section-encodings.html

It's a line that tells Python how to interpret the bytes of your
source program.  It allows us to write unicode literal strings
embedded directly in the program source itself.


More information about the Tutor mailing list