From: Elena Oat Date: Mon, 14 May 2018 14:48:01 +0000 (+0300) Subject: bpo-22069: Update TextIO documentation (GH-6609) X-Git-Tag: v3.8.0a1~1867 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7ffd4c58fae08b29259eebd6cbcd2287820b14e8;p=python bpo-22069: Update TextIO documentation (GH-6609) Clarify that flush is implied when the call to write contains a newline character. --- diff --git a/Doc/library/io.rst b/Doc/library/io.rst index 5c71d900fd..f2e0fdbc5b 100644 --- a/Doc/library/io.rst +++ b/Doc/library/io.rst @@ -889,7 +889,7 @@ Text I/O characters written are translated to the given string. If *line_buffering* is ``True``, :meth:`flush` is implied when a call to - write contains a newline character. + write contains a newline character or a carriage return. If *write_through* is ``True``, calls to :meth:`write` are guaranteed not to be buffered: any data written on the :class:`TextIOWrapper`