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
de994d91
Commit
de994d91
authored
Aug 02, 2002
by
Skip Montanaro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
indicate that 'b' is added to the mode flag if not given
parent
71ffc5cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Doc/lib/libgzip.tex
Doc/lib/libgzip.tex
+2
-2
No files found.
Doc/lib/libgzip.tex
View file @
de994d91
...
...
@@ -41,8 +41,8 @@ The \var{mode} argument can be any of \code{'r'}, \code{'rb'},
\code
{
'a'
}
,
\code
{
'ab'
}
,
\code
{
'w'
}
, or
\code
{
'wb'
}
, depending on
whether the file will be read or written. The default is the mode of
\var
{
fileobj
}
if discernible; otherwise, the default is
\code
{
'rb'
}
.
Be aware that only the
\code
{
'rb'
}
,
\code
{
'ab'
}
, and
\code
{
'wb'
}
values should be used
for cross-platform portability.
If not given, the 'b' flag will be added to the mode to ensure the
file is opened in binary mode
for cross-platform portability.
The
\var
{
compresslevel
}
argument is an integer from
\code
{
1
}
to
\code
{
9
}
controlling the level of compression;
\code
{
1
}
is fastest and
...
...
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