Python's 8-bit cleanness deprecated?

Brian Quinlan brian at sweetapp.com
Mon Feb 3 14:16:45 EST 2003


> Does it mean, that all that Python software which is not in ASCII will
> each time give such warning? (Thus probably filling up web-server logs

> or just surprising users (like Perl/C libs do when they don't know 
> current locale).
> 
> I think it's madness... There must be other ways to deal with it. I
could
> agree that for correct operation IDLE is demanding correct encoding
> setting (and nonetheless workis incorrectly!), but plain scripts
should 
> be 8-bit clean, without any conditions! (Luckily, it's alpha version, 
> so nothing really changed yet.)

Just add:
# -*- coding: Latin-1 -*-

to the top of your source files and you will be fine.

Cheers,
Brian






More information about the Python-list mailing list