Message336356
| 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:51 | liyugong | set | recipients: + liyugong |
| 2019-02-23 02:17:51 | liyugong | set | messageid: <1550888271.02.0.0237674201375.issue36088@roundup.psfhosted.org> |
| 2019-02-23 02:17:51 | liyugong | link | issue36088 messages |
| 2019-02-23 02:17:50 | liyugong | create | |