Any reason why cStringIO in 2.5 behaves different from 2.4?

Stefan Behnel stefan.behnel-n05pAM at
Thu Jul 26 14:20:43 CEST 2007

Stefan Scholl wrote:
> Well, is missing
> the fact, that I can't use Unicode with parseString().
> This parseString() uses cStringIO.

Well, Python unicode is not a valid *byte* encoding for XML.

lxml.etree can parse unicode, if you really want, but otherwise, you should
maybe stick to well-formed XML.


More information about the Python-list mailing list