This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients joernheissler, pitrou, serhiy.storchaka, vstinner, xtreak
Date 2021-03-29.12:19:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1617020394.32.0.257560013248.issue37773@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-03-29 12:19:54vstinnersetrecipients: + vstinner, pitrou, serhiy.storchaka, joernheissler, xtreak
2021-03-29 12:19:54vstinnersetmessageid: <1617020394.32.0.257560013248.issue37773@roundup.psfhosted.org>
2021-03-29 12:19:54vstinnerlinkissue37773 messages
2021-03-29 12:19:54vstinnercreate