File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1070,12 +1070,12 @@ are always available. They are listed here in alphabetical order.
1070
1070
``'a' `` open for writing, appending to the end of the file if it exists
1071
1071
``'b' `` binary mode
1072
1072
``'t' `` text mode (default)
1073
- ``'+' `` open a disk file for updating (reading and writing)
1073
+ ``'+' `` open for updating (reading and writing)
1074
1074
========= ===============================================================
1075
1075
1076
1076
The default mode is ``'r' `` (open for reading text, synonym of ``'rt' ``).
1077
- For binary read-write access, the mode ``'w+b' `` opens and truncates the file
1078
- to 0 bytes. ``'r+b' `` opens the file without truncation.
1077
+ Modes `` 'w+' `` and ``'w+b' `` opens and truncates the file. Modes `` 'r+' ``
1078
+ and ``'r+b' `` opens the file with no truncation.
1079
1079
1080
1080
As mentioned in the :ref: `io-overview `, Python distinguishes between binary
1081
1081
and text I/O. Files opened in binary mode (including ``'b' `` in the *mode *
You can’t perform that action at this time.
0 commit comments