comparing Unicode and string
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Mon Oct 23 06:15:25 EDT 2006
More information about the Python-list mailing list
Mon Oct 23 06:15:25 EDT 2006
- Previous message (by thread): is it a bug ?
- Next message (by thread): comparing Unicode and string
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): is it a bug ?
- Next message (by thread): comparing Unicode and string
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list