[issue11453] asyncore.file_wrapper should implement __del__ and call close there to prevent resource leaks and behave like socket.socket does.
Ben Hayden
report at bugs.python.org
Wed Mar 16 02:43:35 CET 2011
Ben Hayden <hayden767 at gmail.com> added the comment:
Adding a patch that adds an __exit__ function much like the one that socket.socket implements. Passes the test_asyncore & also doesn't raise a resource warning when I explicitly comment out some close() calls on file wrapper objects in the test.
----------
keywords: +patch
nosy: +beardedp
Added file: http://bugs.python.org/file21236/issue11453.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11453>
_______________________________________
More information about the Python-bugs-list
mailing list