This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gromgull
Recipients amaury.forgeotdarc, gromgull
Date 2011-03-25.10:34:27
SpamBayes Score 5.3807028e-08
Marked as misclassified No
Message-id <1301049270.27.0.445414291344.issue11649@psf.upfronthosting.co.za>
In-reply-to
Content
I came across the bug when trying to write XML documents to StringIO objects. This does not work, since the output contains a mix of unicode and str objects, and StringIO gets confused. 

A better alternative is to use io.BytesIO, since all output should be encoded, but this also throws an error since it gets some unicode objects. 

The attached file breaks for both cases (comment/uncomment StringIO to test)
History
Date User Action Args
2011-03-25 10:34:30gromgullsetrecipients: + gromgull, amaury.forgeotdarc
2011-03-25 10:34:30gromgullsetmessageid: <1301049270.27.0.445414291344.issue11649@psf.upfronthosting.co.za>
2011-03-25 10:34:28gromgulllinkissue11649 messages
2011-03-25 10:34:28gromgullcreate