Skip to content

gh-81954: Always close ZipFile in __del__ even if the warning fails - #159419

Open
brittanyrey wants to merge 3 commits into
python:mainfrom
brittanyrey:b-zipfile-del-close
Open

brittanyrey wants to merge 3 commits into
python:mainfrom
brittanyrey:b-zipfile-del-close

Explain why ZipFile.__del__ wraps the warning in try/finally

9c41b95
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
DO-NOT-MERGE
succeeded Oct 14, 2026 in 7s