summaryrefslogtreecommitdiffstats
path: root/Lib/_pyio.py
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2012-01-14 10:51:00 (GMT)
committerCharles-François Natali <neologix@free.fr>2012-01-14 10:51:00 (GMT)
commitd612de10e551751c44c1772a027fe6953ae04f99 (patch)
tree8565f2c4cf1527b511cc4337c9009e051a759eb3 /Lib/_pyio.py
parent138f4656e38f656afa7436c306aa74f1d4941216 (diff)
downloadcpython-d612de10e551751c44c1772a027fe6953ae04f99.zip
cpython-d612de10e551751c44c1772a027fe6953ae04f99.tar.gz
cpython-d612de10e551751c44c1772a027fe6953ae04f99.tar.bz2
Issue #12760: Refer to the new 'x' open mode as "exclusive creation" mode.
Diffstat (limited to 'Lib/_pyio.py')
-rw-r--r--Lib/_pyio.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/_pyio.py b/Lib/_pyio.py
index 6e8f369..f66290f 100644
--- a/Lib/_pyio.py
+++ b/Lib/_pyio.py
@@ -41,7 +41,7 @@ def open(file, mode="r", buffering=-1, encoding=None, errors=None,
mode is an optional string that specifies the mode in which the file is
opened. It defaults to 'r' which means open for reading in text mode. Other
common values are 'w' for writing (truncating the file if it already
- exists), 'x' for creating and writing to a new file, and 'a' for appending
+ exists), 'x' for exclusive creation of a new file, and 'a' for appending
(which on some Unix systems, means that all writes append to the end of the
file regardless of the current seek position). In text mode, if encoding is
not specified the encoding used is platform dependent. (For reading and