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 eng793
Recipients benjamin.peterson, eng793, hynek, pitrou, stutzbach
Date 2012-09-02.14:01:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1346594480.23.0.738264368256.issue15841@psf.upfronthosting.co.za>
In-reply-to
Content
Here is the patch fixing the issue in both StringIO and BytesIO. In both cases, the problem is that in their respective c files, these methods always returned true, without testing whether the file was closed. Is this a recent rewrite? I am surprised this did not bite someone earlier.

I also added a testcase to test_memoryio.py covering this issue; and I added the docstring for these methods, which were missing.

This patch compiles and passes the entire test suite in my system.
History
Date User Action Args
2012-09-02 14:01:20eng793setrecipients: + eng793, pitrou, benjamin.peterson, stutzbach, hynek
2012-09-02 14:01:20eng793setmessageid: <1346594480.23.0.738264368256.issue15841@psf.upfronthosting.co.za>
2012-09-02 14:01:19eng793linkissue15841 messages
2012-09-02 14:01:19eng793create