Author serhiy.storchaka
Recipients serhiy.storchaka
Date 2014-08-17.17:05:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1408295143.26.0.466080487063.issue22217@psf.upfronthosting.co.za>
In-reply-to
Content
Proposed patch implements __repr__() methods of three zipfile classes: ZipFile, ZipInfo and ZipExtFile. Example:

>>> import zipfile
>>> zf = zipfile.ZipFile('/usr/share/doc/texlive-base/support/makeindex/ind-src.zip')
>>> zf
<zipfile.ZipFile filename='/usr/share/doc/texlive-base/support/makeindex/ind-src.zip' mode='r'>
>>> zf.infolist()[:2]
[<ZipInfo filename='ind-src/' filemode=drwxr-xr-x external_attr=0x10>, <ZipInfo filename='ind-src/fig1.tex' compress_type=deflate filemode=-r--r--r-- external_attr=0x1 file_size=1553 compress_size=518>]
>>> zf.open('ind-src/fig1.tex')
<zipfile.ZipExtFile name='ind-src/fig1.tex' mode='r' compress_type=deflate>
History
Date User Action Args
2014-08-17 17:05:43serhiy.storchakasetrecipients: + serhiy.storchaka
2014-08-17 17:05:43serhiy.storchakasetmessageid: <1408295143.26.0.466080487063.issue22217@psf.upfronthosting.co.za>
2014-08-17 17:05:43serhiy.storchakalinkissue22217 messages
2014-08-17 17:05:42serhiy.storchakacreate