string seems a little odd to me:
u'abc'>>unicode(u"abc")
Traceback (most recent call last):>>unicode(u"abc", "ascii")
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.