Alessandro Moura added the comment:

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.

----------
Added file: http://bugs.python.org/file27096/memio.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