Python 1.6a2 Unicode bug (was Re: comparing strings and ints)

Aahz Maruch aahz at netcom.com
Sun Apr 16 00:00:00 CEST 2000


In article <6M1J4.662$rc9.209708544 at newsb.telia.net>,
Fredrik Lundh <effbot at telia.com> wrote:
>
>otoh, 1.6a2 cannot compare strings safely:
>
>Python 1.6a2 (#0, Apr  5 2000, 23:56:55)
>Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>>> u"abc" < "†„”"
>Traceback (most recent call last):
>  File "<stdin>", line 1, in ?
>ValueError: UTF-8 decoding error: unexpected code byte

That looks like a bug to me.
--
                      --- Aahz (Copyright 2000 by aahz at netcom.com)

Androgynous poly kinky vanilla queer het    <*>     http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

Why doesn't "Just Say NO" include caffeine, nicotine, alcohol, Prozac,
and Ritalin?  --Aahz



More information about the Python-list mailing list