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 serhiy.storchaka
Recipients dmi.baranov, serhiy.storchaka
Date 2013-11-16.19:24:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1384629873.26.0.0418571692559.issue17681@psf.upfronthosting.co.za>
In-reply-to
Content
Some examples:

>>> import zipfile
>>> z = zipfile.ZipFile('README.zip')
>>> z.filelist[0].extra
b'UT\x05\x00\x03\xe0\xc3\x87Rux\x0b\x00\x01\x04\xe8\x03\x00\x00\x04\xe8\x03\x00\x00'
>>> z.filelist[0].extra_map
<zipfile.ExtraMap object at 0xb6fe8bec>
>>> list(z.filelist[0].extra_map.items())
[(21589, b'\x03\xe0\xc3\x87R'), (30837, b'\x01\x04\xe8\x03\x00\x00\x04\xe8\x03\x00\x00')]
>>> import gzip
>>> gz = gzip.open('README.dz')
>>> gz.extra_bytes
b''
>>> gz.extra_map
<gzip.ExtraMap object at 0xb6fd04ac>
>>> list(gz.extra_map.items())
[]
>>> gz.read(1)
b'T'
>>> gz.extra_bytes
b'RA\x08\x00\x01\x00\xcb\xe3\x01\x00T\x0b'
>>> list(gz.extra_map.items())
[(b'RA', b'\x01\x00\xcb\xe3\x01\x00T\x0b')]
History
Date User Action Args
2013-11-16 19:24:33serhiy.storchakasetrecipients: + serhiy.storchaka, dmi.baranov
2013-11-16 19:24:33serhiy.storchakasetmessageid: <1384629873.26.0.0418571692559.issue17681@psf.upfronthosting.co.za>
2013-11-16 19:24:33serhiy.storchakalinkissue17681 messages
2013-11-16 19:24:32serhiy.storchakacreate