Very strange unicode behaviour

Syver Enstad syver at
Fri Jan 16 17:39:32 CET 2004

I have seem to isolate the behaviour:

>>> chr(127).find(u'')
>>> chr(128).find(u'')
UnicodeError: ASCII decoding error: ordinal not in range(128)

Observe that the exception is first thrown on after execing a blank
line, after calling find on a non ASCII string.

I'll test this on 2.3 when I get home from work.

More information about the Python-list mailing list