Message389690
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. |
|
Date |
User |
Action |
Args |
2021-03-29 12:19:54 | vstinner | set | recipients:
+ vstinner, pitrou, serhiy.storchaka, joernheissler, xtreak |
2021-03-29 12:19:54 | vstinner | set | messageid: <1617020394.32.0.257560013248.issue37773@roundup.psfhosted.org> |
2021-03-29 12:19:54 | vstinner | link | issue37773 messages |
2021-03-29 12:19:54 | vstinner | create | |
|