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 @@ -1068,12 +1068,12 @@ are always available. They are listed here in alphabetical order.
10681068 ``'a' `` open for writing, appending to the end of the file if it exists
10691069 ``'b' `` binary mode
10701070 ``'t' `` text mode (default)
1071- ``'+' `` open a disk file for updating (reading and writing)
1071+ ``'+' `` open for updating (reading and writing)
10721072 ========= ===============================================================
10731073
10741074 The default mode is ``'r' `` (open for reading text, synonym of ``'rt' ``).
1075- For binary read-write access, the mode ``'w+b' `` opens and truncates the file
1076- to 0 bytes. ``'r+b' `` opens the file without truncation.
1075+ Modes `` 'w+' `` and ``'w+b' `` opens and truncates the file. Modes `` 'r+' ``
1076+ and ``'r+b' `` opens the file with no truncation.
10771077
10781078 As mentioned in the :ref: `io-overview `, Python distinguishes between binary
10791079 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