[docs] doc bug at https://docs.python.org/3/library/zipfile.html#module-zipfile ?

Senthil Kumaran senthil at uthcode.com
Thu Jan 21 23:46:31 EST 2016


On Wed, Jan 20, 2016 at 4:27 AM, <keith.briggs at bt.com> wrote:

> > 'x' to exclusive create and write a new file


It means always create  a new file. Don't append and if the file exists,
don't overwrite, but throw a FileExistsError Exception.

I think, it could be clarified a bit. It could be stated as "Exclusively
create and write a new file. Unlike 'w', if the file already exists, 'x'
mode will raise a FileExistsError exception."

-- 
Senthil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20160121/04797cd0/attachment-0001.html>


More information about the docs mailing list