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 Antony.Lee
Recipients Antony.Lee
Date 2014-06-11.10:26:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1402482380.66.0.687307266587.issue21717@psf.upfronthosting.co.za>
In-reply-to
Content
I noticed that while lzma and bz2 already support the "x" (create a new file, raise if it already exists) flag, zipfile and tarfile don't know about it yet.  It would be an useful addition, just as it is useful for regular open.

A quick look at both modules show that this likely only requires a little bit more than updating the checks in the corresponding constructors to allow "x" mode, as the modes are passed (nearly) transparently to the open() builtin.
History
Date User Action Args
2014-06-11 10:26:20Antony.Leesetrecipients: + Antony.Lee
2014-06-11 10:26:20Antony.Leesetmessageid: <1402482380.66.0.687307266587.issue21717@psf.upfronthosting.co.za>
2014-06-11 10:26:20Antony.Leelinkissue21717 messages
2014-06-11 10:26:20Antony.Leecreate