comparing Unicode and string

Marc 'BlackJack' Rintsch bj_666 at
Mon Oct 23 12:15:25 CEST 2006

In <1161595714.342067.51350 at>,
luc.saffre at wrote:

> I didn't mean that the *assignment* should raise exception. I mean that
> any string constant that cannot be decoded using
> sys.getdefaultencoding() should be considered a kind of syntax error.

Why?  Python strings are *byte strings* and bytes have values in the range
0..255.  Why would you restrict them to ASCII only?

	Marc 'BlackJack' Rintsch

More information about the Python-list mailing list