Alessandro Moura added the comment:

This also happens for the writable() and seekable() methods. The problem is 
that those methods do not check whether the buffers have been closed in 
stringio.c. This is fixed in the attached patch for StringIO. BytesIO should be 
the same, but bytesio.c is structured differently, and I still have to 
understand the code. I will try to do this, and then add tests for this issue - 
which should go in one of the mixins of test_memoryio.py, I presume.

----------
keywords: +patch
nosy: +eng793
Added file: http://bugs.python.org/file27094/stringio.c.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15841>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to