Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
I cannot reproduce the issue. __exit__() calls close(). >>> import io >>> class F(io.IOBase): ... def close(self): ... print('close') ... super().close() # set closed = True ... >>> with F(): pass ... close ---------- nosy: +serhiy.storchaka status: open -> pending _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40235> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com