[issue36088] zipfile cannot handle zip in zip

2019-02-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Supporting nested zip files is a new feature added in 3.7 (see issue22908). New features can be added only in new Python versions. 3.6 currently takes only security bug fixes. -- resolution: -> out of date stage: -> resolved status: open ->

[issue36088] zipfile cannot handle zip in zip

2019-02-22 Thread Liyu Gong
Change by Liyu Gong : Removed file: https://bugs.python.org/file48164/a.zip ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36088] zipfile cannot handle zip in zip

2019-02-22 Thread Liyu Gong
Liyu Gong added the comment: add a.tar -- Added file: https://bugs.python.org/file48166/a.tar ___ Python tracker ___ ___

[issue36088] zipfile cannot handle zip in zip

2019-02-22 Thread Liyu Gong
Liyu Gong added the comment: Sorry, I made a mistake. I retested on the following content a.zip ==> abc/def/1.zip zf = zipfile.ZipFile('a.zip') memf = zf.open('abc/def/1.zip', 'r') zf2 = zipfile.ZipFile(memf) will raise an error. However, when a.zip is a tar file containing

[issue36088] zipfile cannot handle zip in zip

2019-02-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The current behavior looks correct to me. abc/def/1.txt is not a ZIP file, so the error is expected. tarfile.open('a.zip') raises an error too, because a.zip is not a tar file. -- nosy: +serhiy.storchaka status: open -> pending

[issue36088] zipfile cannot handle zip in zip

2019-02-22 Thread Liyu Gong
New submission from Liyu Gong : Suppose a.zip is z zip file containing 'abc/def/1.txt' zf = zipfile.ZipFile('a.zip') memf = zf.open('abc/def/1.txt', 'r') zf2 = zipfile.ZipFile(memf) will raise an error. However, when a.zip is a tar file containing 'abc/def/1.txt', the following codes tf =