comparing Unicode and string
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Mon Oct 23 06:15:25 EDT 2006
In <1161595714.342067.51350 at e3g2000cwe.googlegroups.com>,
luc.saffre at gmail.com 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?
Ciao,
Marc 'BlackJack' Rintsch
More information about the Python-list
mailing list