This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author liyugong
Recipients liyugong
Date 2019-02-23.02:17:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1550888271.02.0.0237674201375.issue36088@roundup.psfhosted.org>
In-reply-to
Content
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 = tarfile.open('a.zip')
memf = tf.open('abc/def/1.txt', 'r')
zf2 = zipfile.ZipFile(memf) 

works well. Is it a known issue?

Thanks!
History
Date User Action Args
2019-02-23 02:17:51liyugongsetrecipients: + liyugong
2019-02-23 02:17:51liyugongsetmessageid: <1550888271.02.0.0237674201375.issue36088@roundup.psfhosted.org>
2019-02-23 02:17:51liyugonglinkissue36088 messages
2019-02-23 02:17:50liyugongcreate