[issue44638] zipfile.ZipFile is closed when zipfile.Path is closed

Jason R. Coombs report at bugs.python.org
Thu Jul 15 21:00:15 EDT 2021


Jason R. Coombs <jaraco at jaraco.com> added the comment:

Even simpler:

```
zip_file = zipfile.ZipFile('zipfile.zip')
name = zip_file.namelist()[0]
zipfile.Path(zip_file)
zip_file.open(name)
```

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44638>
_______________________________________


More information about the Python-bugs-list mailing list