E
Ernest Adrogué
Hi,
There seems to be some inconsistency in the way exceptions handle Unicode
strings. For instance, KeyError seems to not have a problem with them
Traceback (most recent call last):
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
KeyError: u'\xe4'
On the other hand ValueError doesn't print anything.
Traceback (most recent call last):
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError
I'm using Python 2.7.6 on a Unix machine.
There seems to be some inconsistency in the way exceptions handle Unicode
strings. For instance, KeyError seems to not have a problem with them
Traceback (most recent call last):
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
KeyError: u'\xe4'
On the other hand ValueError doesn't print anything.
Traceback (most recent call last):
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError
I'm using Python 2.7.6 on a Unix machine.