Serhiy Storchaka <[email protected]> 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 <[email protected]>
<https://bugs.python.org/issue40235>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com