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 jheiselman
Recipients BitTorment, Yaniv.Aknin, alanmcintyre, brtzsnr, georg.brandl, iritkatriel, jheiselman, michael.driscoll, serhiy.storchaka, techtonik
Date 2021-01-27.19:00:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1611774031.04.0.627966011199.issue2824@roundup.psfhosted.org>
In-reply-to
Content
This just bit us too. I don't feel like a warning is enough. In our case, we want to prevent it from happening to begin with so that a developer who isn't expecting this doesn't have to know ahead of time to check for a file.

Once a duplicate is in the zip file, it is maintained in the listing of files, but deleting one of the entries using Windows explorer results in both entries being deleted which can (and has) led to a loss of data. So preventing it from happening in the first place seems more prudent. Of course, allow an override with a parameter to .write() perhaps.
History
Date User Action Args
2021-01-27 19:00:31jheiselmansetrecipients: + jheiselman, georg.brandl, alanmcintyre, techtonik, BitTorment, brtzsnr, Yaniv.Aknin, serhiy.storchaka, michael.driscoll, iritkatriel
2021-01-27 19:00:31jheiselmansetmessageid: <1611774031.04.0.627966011199.issue2824@roundup.psfhosted.org>
2021-01-27 19:00:31jheiselmanlinkissue2824 messages
2021-01-27 19:00:30jheiselmancreate