Commit de994d91 authored by Skip Montanaro's avatar Skip Montanaro

indicate that 'b' is added to the mode flag if not given

parent 71ffc5cc
...@@ -41,8 +41,8 @@ The \var{mode} argument can be any of \code{'r'}, \code{'rb'}, ...@@ -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 \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 whether the file will be read or written. The default is the mode of
\var{fileobj} if discernible; otherwise, the default is \code{'rb'}. \var{fileobj} if discernible; otherwise, the default is \code{'rb'}.
Be aware that only the \code{'rb'}, \code{'ab'}, and \code{'wb'} If not given, the 'b' flag will be added to the mode to ensure the
values should be used for cross-platform portability. file is opened in binary mode for cross-platform portability.
The \var{compresslevel} argument is an integer from \code{1} to The \var{compresslevel} argument is an integer from \code{1} to
\code{9} controlling the level of compression; \code{1} is fastest and \code{9} controlling the level of compression; \code{1} is fastest and
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment