[issue11415] ZipFile don't overwrite compresed files at create

2011-03-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.6 is only open for security fixes. -- nosy: +terry.reedy resolution: -> invalid status: open -> closed superseder: -> remove/delete method for zipfile/tarfile objects versions: -Python 2.6 ___ Python tracker

[issue11415] ZipFile don't overwrite compresed files at create

2011-03-07 Thread Jesús Leganés Combarro
Jesús Leganés Combarro added the comment: Ok, they talk about remove it, that's why i didn't found it :-P Ok, it make sense. By the way, this way the old data is available? How? (Just to know... it could be a courious feature :-D ) -- ___ Python tr

[issue11415] ZipFile don't overwrite compresed files at create

2011-03-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > Luckily, extracting one of them just get only the more recent one It's not only luck: a Zip file has a "central directory" used to retrieve data. ZipFile just appends the new file data to the end of the Zip file, then write the updated directory struc

[issue11415] ZipFile don't overwrite compresed files at create

2011-03-06 Thread Jesús Leganés Combarro
New submission from Jesús Leganés Combarro : I've created a new, compresed ZipFile in memory (using StringIO) and added several files to it with ZipFile.write(), later i've added a new file with the same name of one of the previous ones just to overwrite it with some dinamic data using ZipFile