[issue28867] NamedTemporaryFile does not generate a ResourceWarning for unclosed files (unlike TemporaryFile)

R. David Murray report at bugs.python.org
Sun Dec 4 17:29:53 EST 2016


R. David Murray added the comment:

__del__ is a destructor.  If the file is open when it is called, it should emit a ResourceWarning.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28867>
_______________________________________


More information about the Python-bugs-list mailing list