Martin Panter added the comment: I believe this still leaves the socket open via the “file” object. Just that there is no ResourceWarning generated due to the way IOBase.__del__() works.
---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22351> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com