PEP-0263 and default encoding

Martin v. Löwis martin at v.loewis.de
Tue Sep 30 17:41:34 EDT 2003


Klaus Alexander Seistrup <spam at magnetic-ink.dk> 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.

REgards,
Martin




More information about the Python-list mailing list