New submission from Cassaigne :
I want to update or create a comment to zip file.
For instance, I have test.zip file.
I'm using these statement to create a comment :
from zipfile import ZipFile
z=ZipFile('test.zip','a')
z.comment='Create a new comment'
z.clo
Cassaigne added the comment:
Tanks à lot. To complete Information about this bug.
it up and take a look. The relevant code is in Python, and I'm guessing
there is some logic bug when only the comment is set (and nothing is added
to the zipfile), but I haven't looked at the code.
Cassaigne added the comment:
I correct the doc concerning subprocess.getstatusoutput(cmd) function.
More specifically the part on examples and I add a quick explanation about how
are manage the return code.
--
keywords: +patch
nosy: +acassaigne
versions: +Python 3.6, Python 3.7
Added
Cassaigne added the comment:
I improve the patch a little bit, following the recommendations of the
Stinner's review.
I replace "status" mention by "exit code".
--
Added file: http://bugs.python.org/file45077/issue22635-2.diff
_
Cassaigne added the comment:
According to the Victor's review, I remove "Pay attention" words and change
exit code by returncode.
--
Added file: http://bugs.python.org/file45078/issue22635-3.diff
___
Python tracker
<http
Cassaigne added the comment:
I add a crosslink to WEXITSTATUS function. According David Murray advices.
--
Added file: http://bugs.python.org/file45079/issue22635-4.diff
___
Python tracker
<http://bugs.python.org/issue22