Commit fd0c2f57 authored by Éric Araujo's avatar Éric Araujo

Define what “updating” means in docs for open (#19627).

Original patch by Lina Clark.
parent 8de21188
......@@ -880,8 +880,8 @@ available. They are listed here in alphabetical order.
to use the system default, which is usually line buffered for tty devices and
fully buffered for other files. If omitted, the system default is used. [#]_
Modes ``'r+'``, ``'w+'`` and ``'a+'`` open the file for updating (note that
``'w+'`` truncates the file). Append ``'b'`` to the mode to open the file in
Modes ``'r+'``, ``'w+'`` and ``'a+'`` open the file for updating (reading and writing);
note that ``'w+'`` truncates the file. Append ``'b'`` to the mode to open the file in
binary mode, on systems that differentiate between binary and text files; on
systems that don't have this distinction, adding the ``'b'`` has no effect.
......
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