Any reason why cStringIO in 2.5 behaves different from 2.4?

Stefan Scholl stesch at no-spoon.de
Fri Jul 27 06:47:48 CEST 2007


Chris Mellon <arkanes at gmail.com> wrote:
> XML is not a string. It's a specific type of bytestream. If you want
> to work with XML, then generate well-formed XML in the correct
> encoding. There's no reason you should have an XML document (as
> opposed to values extracted from that document) in unicode objects at
> all.

The affected method in xml.sax is called parseString()




More information about the Python-list mailing list