Antoine Pitrou <pit...@free.fr> added the comment: I just tried the patch. One problem is that you are supposed to be able to call close() several times without having it fail:
>>> f = open("LICENSE") >>> f.close() >>> f.close() >>> f = io.open("LICENSE") >>> f.close() >>> f.close() Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: I/O operation on closed file. This means your patch should be a little smarter. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7865> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com