Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e5c05cc8
Commit
e5c05cc8
authored
Jan 21, 2016
by
Senthil Kumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor clarification on Zipfile 'x' mode - exclusive creation of a file.
parent
38150e0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Doc/library/zipfile.rst
Doc/library/zipfile.rst
+2
-2
No files found.
Doc/library/zipfile.rst
View file @
e5c05cc8
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment