2.3 encoding parsing bug

David Bolen db3l at fitlinxx.com
Wed Feb 18 02:17:34 CET 2004

"Edward K. Ream" <edreamleo at charter.net> writes:

> The workaround for my app is to precede this line with the following line:
> # -*- coding: iso-8859-1 -*-
> This makes Python 2.3 happy.

Presumably it would also work if you just included a pair of blank
lines (or perhaps to make it harder to accidentally remove, blank
comment lines), since Python is only going to check the first two
lines of the file.

It's still annoying, but at least you aren't then forced to bother
replicating a Python-matching line that actually contains encoding

-- David

More information about the Python-list mailing list