From: Éric Araujo Date: Wed, 12 Mar 2014 06:16:37 +0000 (-0400) Subject: Define what “updating” means in docs for open (#19627). X-Git-Tag: v2.7.7rc1~139 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd0c2f5711d7a0495a74dcf4233990c571f47a57;p=python Define what “updating” means in docs for open (#19627). Original patch by Lina Clark. --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 3b3c7ddf0c..dec76d3bf4 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -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.