Jeffrey Kintscher <[email protected]> added the comment:
It looks like a copy of the zip_file object is getting created, probably by the
Path constructor:
zip_path = Path(zip_file, "file-a")
When return is invoked, the copy still has a reference to the now closed
bytes_io object which causes the ValueError exception when ZipFile.__del__()
calls ZipFile.close(). This is definitely a bug. I'll take a crack at fixing
it.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue41350>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com