diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2016-01-22 05:08:25 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2016-01-22 05:08:25 (GMT) |
commit | cbde4a6924296504447928520ab8fad9bc860b64 (patch) | |
tree | 102d790fb56bff569870e91289d6383b956988ec | |
parent | a7baa106cd695b9f7bc3da5043d11bb7ef836e7b (diff) | |
parent | e5c05cc8c0c4bdf9748f8d7d2a39e85793e52af9 (diff) | |
download | cpython-cbde4a6924296504447928520ab8fad9bc860b64.zip cpython-cbde4a6924296504447928520ab8fad9bc860b64.tar.gz cpython-cbde4a6924296504447928520ab8fad9bc860b64.tar.bz2 |
merge from 3.5
minor clarification on Zipfile 'x' mode - exclusive creation of a file.
(Based on the feedback from docs@python.org list)
-rw-r--r-- | Doc/library/zipfile.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst index d40315e..e3c2217 100644 --- a/Doc/library/zipfile.rst +++ b/Doc/library/zipfile.rst @@ -134,8 +134,8 @@ ZipFile Objects Open a ZIP file, where *file* can be either a path to a file (a string) or a file-like object. The *mode* parameter should be ``'r'`` to read an existing - file, ``'w'`` to truncate and write a new file, ``'x'`` to exclusive create - and write a new file, or ``'a'`` to append to an existing file. + file, ``'w'`` to truncate and write a new file, ``'a'`` to append to an + existing file, or ``'x'`` to exclusively create and write a new file. If *mode* is ``'x'`` and *file* refers to an existing file, a :exc:`FileExistsError` will be raised. If *mode* is ``'a'`` and *file* refers to an existing ZIP |