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
8a73fced
Commit
8a73fced
authored
Jan 13, 2008
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify the effect of text mode.
parent
2b06be0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Doc/library/functions.rst
Doc/library/functions.rst
+3
-1
No files found.
Doc/library/functions.rst
View file @
8a73fced
...
...
@@ -734,7 +734,9 @@ available. They are listed here in alphabetical order.
writing (truncating the file if it already exists), 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). If *mode* is omitted, it
defaults to ``'
r
'``. When opening a binary file, you should append ``'
b
'`` to
defaults to ``'
r
'``. The default is to use text mode, which may convert
``'
\
n
'`` characters to a platform-specific representation on writing and back
on reading. Thus, when opening a binary file, you should append ``'
b
'`` to
the *mode* value to open the file in binary mode, which will improve
portability. (Appending ``'
b
'`` is useful even on systems that don'
t
treat
binary
and
text
files
differently
,
where
it
serves
as
documentation
.)
See
below
...
...
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