[issue14399] zipfile and creat/update comment
Jeff Knupp
report at bugs.python.org
Tue Mar 27 02:51:05 CEST 2012
Jeff Knupp <jknupp at gmail.com> added the comment:
I'm unable to reproduce on either 2.7 or 3.3. Running the following:
from zipfile import ZipFile
z=ZipFile('test.zip','a')
z.comment='Create a new comment'
z.close()
produces the output:
Archive: test.zip
Create a new comment
with the comment changed to b'...' for 3.3. Note that in 3.3 if you set the comment to a string and try to close, an exception will be raised and the test.zip file will not have a comment.
Odd that I don't see the bug on either branch. Can someone else confirm?
----------
nosy: +Jeff.Knupp
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14399>
_______________________________________
More information about the Python-bugs-list
mailing list