diff options
author | Charles-François Natali <neologix@free.fr> | 2012-01-09 21:40:02 (GMT) |
---|---|---|
committer | Charles-François Natali <neologix@free.fr> | 2012-01-09 21:40:02 (GMT) |
commit | dc3044c7043b687f3be97a731d873dc991f5d83b (patch) | |
tree | eb7ae132b0c152c6ad9dcfe3ae63b80cd2acdb4a /Doc/whatsnew/3.3.rst | |
parent | 8a9b9c7d165c55ef368a5d0be539e17ad3f201d4 (diff) | |
download | cpython-dc3044c7043b687f3be97a731d873dc991f5d83b.zip cpython-dc3044c7043b687f3be97a731d873dc991f5d83b.tar.gz cpython-dc3044c7043b687f3be97a731d873dc991f5d83b.tar.bz2 |
Issue #12760: Add a create mode to open(). Patch by David Townshend.
Diffstat (limited to 'Doc/whatsnew/3.3.rst')
-rw-r--r-- | Doc/whatsnew/3.3.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst index f458ae0..0b0f8f6 100644 --- a/Doc/whatsnew/3.3.rst +++ b/Doc/whatsnew/3.3.rst @@ -408,6 +408,15 @@ parameter to control parameters of the secure channel. (Contributed by Sijin Joseph in :issue:`8808`) +io +-- + +The :func:`~io.open` function has a new ``'x'`` mode that can be used to create +a new file, and raise a :exc:`FileExistsError` if the file already exists. + +(Contributed by David Townshend in :issue:`12760`) + + lzma ---- |