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 alexandre.vassalotti
Recipients alexandre.vassalotti, brett.cannon, hdiogenes
Date 2008-06-10.02:14:02
SpamBayes Score 0.0166845
Marked as misclassified No
Message-id <>
Here's a preliminary patch that add the C optimization for StringIO.
All tests are passing except two which depends on the StringIO.buffer
attribute of the TextIOWrapper class. Honestly, I am not sure what is
the correct way to fix this. I cannot simply "fake" the attribute by
returning a BytesIO object, since the file position of buffer is
undecidable. It seems to me that the only way to fix these failing tests
would be to define a FakeIO class, in their test file, that would wrap
ByteIO with TextIOWrapper, just like the old and inefficient StringIO.

So, any idea on what would be the best thing to do?
Date User Action Args
2008-06-10 02:14:11alexandre.vassalottisetspambayes_score: 0.0166845 -> 0.0166845
recipients: + alexandre.vassalotti, brett.cannon, hdiogenes
2008-06-10 02:14:11alexandre.vassalottisetspambayes_score: 0.0166845 -> 0.0166845
messageid: <>
2008-06-10 02:14:09alexandre.vassalottilinkissue2918 messages
2008-06-10 02:14:08alexandre.vassalotticreate