XML: minidom toxml() does not work for non English files! :-(

Brian Quinlan brian at sweetapp.com
Mon May 6 16:18:49 EDT 2002


I have no idea what the problem is, but the coercion to string strikes
me as sloppy.

Does anyone actually believe that the following (from PythonLabs Python
2.2) is reasonable?

>>> StringIO.StringIO([1,2,3]).read()
'[1,'

Also,

- if type(buf) is not types.UnicodeType
+ if not isinstance(buf, types.UnicodeType)

Cheers,
Brian






More information about the Python-list mailing list