Any reason why cStringIO in 2.5 behaves different from 2.4?

Chris Mellon arkanes at
Sat Jul 28 20:15:12 CEST 2007

On 7/28/07, Stefan Scholl <stesch at> wrote:
> Stefan Behnel <stefan.behnel-n05pAM at> wrote:
> > Stefan Scholl wrote:
> >> But the style of the answers makes me wonder if I should report
> >> the bug in xml.sax (or its documentation) or just ignore it.
> >
> > Note that PyXML is no longer actively maintained, so it's unlikely that
> Too bad it can still be found in at least 80 % of all XML
> examples. I should burn the XML chapter of the cookbook.
> By the way: Thanks for the tip regarding LXML. I'll try to
> remember it for the next project.
> > reporting the bug would get you a version that raises an exception when
> > passing a unicode string *independent of the Python version*.
> >
> > Besides, the bug has been fixed in Python 2.5 already.
> Just checked on a system without PyXML: xml/sax/
> defines parseString() and uses cStringIO (when available).
> Python 2.5.1

Yes, thats the fixed bug. After all this you still do not seem to be
clear on what the bug is. The bug is not that your code fails in 2.5,
it's that it worked at all in 2.4.

More information about the Python-list mailing list