A short question about non-ascii characters in list

js ebgssth at gmail.com
Mon Sep 17 01:08:46 EDT 2007


>>> print u"äöü"
äöü
>>> print [u"äöü"]
[u'\xe4\xf6\xfc']

Python seems to treat non-ASCII chars in a list differently from the
one in the outside of a list.
I think this behavior is so inconvenient and actually makes debugging
work harder.

Is this an intentional? Is there any doc discussing about this?

Thanks.



More information about the Python-list mailing list