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 <>
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.
Date User Action Args
2014-06-11 10:26:20Antony.Leesetrecipients: + Antony.Lee
2014-06-11 10:26:20Antony.Leesetmessageid: <>
2014-06-11 10:26:20Antony.Leelinkissue21717 messages
2014-06-11 10:26:20Antony.Leecreate