Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(204)

Unified Diff: Doc/whatsnew/3.3.rst

Issue 12760: Add create mode to open()
Patch Set: Created 1 year, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Doc/library/io.rst ('k') | Lib/_pyio.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Doc/whatsnew/3.3.rst Wed Jan 11 21:00:48 2012 -0500
+++ b/Doc/whatsnew/3.3.rst Thu Jan 12 07:35:13 2012 +0200
@@ -411,8 +411,9 @@
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.
+The :func:`~io.open` function has a new ``'x'`` mode that can be used to
+exclusively create a new file, and raise a :exc:`FileExistsError` if the file
+already exists. It is based on the C11 'x' mode to fopen().
(Contributed by David Townshend in :issue:`12760`)
« no previous file with comments | « Doc/library/io.rst ('k') | Lib/_pyio.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld cbc36f91f3f7