M
maport
The behavior of the unicode built-in function when given a unicode
string seems a little odd to me:
File "<stdin>", line 1, in ?
TypeError: decoding Unicode is not supported
I don't see why providing the encoding should make the function behave
differently when given a Unicode string. Surely unicode(s) ought to
bahave exactly the same as unicode(s,sys.getdefaultencoding())?
Any opinions?
Mike.
string seems a little odd to me:
Traceback (most recent call last):u'abc'
File "<stdin>", line 1, in ?
TypeError: decoding Unicode is not supported
I don't see why providing the encoding should make the function behave
differently when given a Unicode string. Surely unicode(s) ought to
bahave exactly the same as unicode(s,sys.getdefaultencoding())?
Any opinions?
Mike.