Python and unicode is not always fun

Regardless of what programming language one use, there are always small irritating things that one have to keep track of. I have most certainly misunderstood something here, but wide unicode characters are not managed properly in Python 3.0.1 I think. Let me know what I have missed please.


$ python
Python 3.0.1 (r301:69597, Feb 14 2009, 19:03:52)
[GCC 4.0.1 (Apple Inc. build 5490)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> c = chr(0x10400)
>>> c
'��'
>>> print("%x" % ord(c))
10400
>>> for i in c:
...    print("%x" % ord(i))
...
d801
dc00
>>> type(c)
<class 'str'>