2.3 encoding parsing bug

"Martin v. Löwis" martin at v.loewis.de
Tue Feb 17 16:44:37 EST 2004


Edward K. Ream wrote:

> To make myself perfectly clear: Python has absolutely no right to complain
> about comment lines that do not have the form:
> 
> # -*- coding: <encoding> -*-

It does. Please see

http://www.python.org/doc/current/ref/encodings.html

This is the precise specification; Python looks for a certain regular
expression.

Regards,
Martin




More information about the Python-list mailing list