S
Syver Enstad
Here's the interactive session
Python 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information..... try:
.... '\xe5'.find(u'')
.... except UnicodeError:
.... pass
........ func()
....
UnicodeError: ASCII decoding error: ordinal not in range(128)
It's weird that \xe5 throws and not \xe4 but even weirder that the
exception is not cleared so that the loop reports it.
Is this behaviour the same on Python 2.3?
Python 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information..... try:
.... '\xe5'.find(u'')
.... except UnicodeError:
.... pass
........ func()
....
UnicodeError: ASCII decoding error: ordinal not in range(128)
It's weird that \xe5 throws and not \xe4 but even weirder that the
exception is not cleared so that the loop reports it.
Is this behaviour the same on Python 2.3?