PEP-0263 and default encoding

Martin v. Löwis martin at
Tue Sep 30 23:41:34 CEST 2003

Klaus Alexander Seistrup <spam at> writes:

> Python barfs if there are non-ASCII characters in comments and there
> is no coding-line.

Not necessarily. An UTF-8 BOM would do just as well.

> Still beats me why it doesn't use the sys.getdefaultencoding() instead
> of inconveniencing me.

See my other message.


More information about the Python-list mailing list