[Python-ideas] Add create mode to open()

David Townshend aquavitae69 at gmail.com
Tue Aug 16 17:45:50 CEST 2011

This idea was proposed in the discussion on shutil.move, but I thought it
would be worth posting separately to avoid confusing the discussion.

The idea is to add a create mode ('c') to the builtin open() function, which
will have the same effect as os.open(file, os.O_EXCL|os.O_CREAT).  I have
added an issue (http://bugs.python.org/issue12760) for this, including a
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20110816/d668eaf1/attachment.html>

More information about the Python-ideas mailing list