Hallo,
in diese Wiki sollte m.E. noch aufgenommen werden, dass das coding cookie weggelassen werden soll, wenn man mit python 3.x und der Codierung UTF-8 bzw. mit Python 2.x und die Codierung ASCII arbeitet.
Gruß, Gregor
Quelle: http://www.python.org/dev/peps/pep-0008/
- UTF-8 is preferred over Latin-1, see PEP 3120. Files using ASCII (or UTF-8, for Python 3.0) should not have a coding cookie.