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
Date 2009-06-06.02:21:07
SpamBayes Score 0.0041230624
Marked as misclassified No
Message-id <1244254875.51.0.0941712294298.issue6218@psf.upfronthosting.co.za>
In-reply-to
Content
Here is a patch to add pickling support to io.BytesIO and io.StringIO.
Although they are non-trivial, the additions were made with a fair
amount of care (and love!) and thus I believe they could be included in
3.1. 

Furthermore, the improved test-suite uncovered a number of bugs in the
implementation of io.StringIO. So the patch also fixes:

  * fixes a memory-leak in stringio_dealloc; 
  * disallows bytes-like object from being used as the newline
    argument of StringIO;
  * and changes the exception raised by StringIO.__init__ to a
    TypeError when initial_value is not a str.
History
Date User Action Args
2009-06-06 02:21:15alexandre.vassalottisetrecipients: + alexandre.vassalotti
2009-06-06 02:21:15alexandre.vassalottisetmessageid: <1244254875.51.0.0941712294298.issue6218@psf.upfronthosting.co.za>
2009-06-06 02:21:12alexandre.vassalottilinkissue6218 messages
2009-06-06 02:21:12alexandre.vassalotticreate