Serhiy Storchaka added the comment:
This is already implemented.
>>> with ZipFile("Lib/test/zip_cp437_header.zip", "r") as z:
... with z.open("filename_without.txt", "r") as f:
... print(f.read())
... print(f.closed)
...
b'EOF\r\n'
True
----------
components: +Library (Lib) -Extension Modules
nosy: +serhiy.storchaka
resolution: -> out of date
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue22154>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com