STINNER Victor <vstin...@python.org> added the comment:
IMO ZipFile destructor should emit a ResourceWarning if it's not closed explicitly. Nothing in the Python specification gives you any warranty that destructors will be ever called... Depending on the Python implementation and depending on many things, you never know when a destructor is called. Just call the close() method explicitly. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37773> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com