"Decoding unicode is not supported" in unusual situation
nagle at animats.com
Wed Mar 7 09:25:52 CET 2012
line 79, in tounicode
TypeError: decoding Unicode is not supported
from this, under Python 2.7:
def tounicode(s) :
if type(s) == unicode :
That would seem to be impossible. But it's not.
"s" is generated from the "suds" SOAP client. The documentation
for "suds" says:
"Suds leverages python meta programming to provide an intuative API for
consuming web services. Runtime objectification of types defined in the
WSDL is provided without class generation."
I think that somewhere in "suds", they subclass the "unicode" type.
That's almost too cute.
The proper test is
More information about the Python-list