Obsolesence of <>
Skip Montanaro
skip at pobox.com
Fri Jun 1 12:31:06 EDT 2001
>>> "öäb" == u"abc"
...
UnicodeError: ASCII decoding error: ordinal not in range(128)
Lulu> So the next obvious question: WHY is this error raised?!
Python is trying to coerce the ASCII string on the left to be the same type
as the Unicode string on the right. It fails because the first two
characters have ordinal values greater than 127.
--
Skip Montanaro (skip at pobox.com)
(847)971-7098
More information about the Python-list
mailing list