Message 336356 - Python tracker (original) (raw)
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!