]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-81762: Clarify and simplify description of print's flush param (#103264)
authorC.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Wed, 5 Apr 2023 11:16:36 +0000 (06:16 -0500)
committerGitHub <noreply@github.com>
Wed, 5 Apr 2023 11:16:36 +0000 (12:16 +0100)
Doc/library/functions.rst

index f0f374771b0cf10e098e925d048d564d837363a8..8797485cd05d8306689f12497bfdf915ebec650f 100644 (file)
@@ -1444,8 +1444,9 @@ are always available.  They are listed here in alphabetical order.
    arguments are converted to text strings, :func:`print` cannot be used with
    binary mode file objects.  For these, use ``file.write(...)`` instead.
 
-   Whether the output is buffered is usually determined by *file*, but if the
-   *flush* keyword argument is true, the stream is forcibly flushed.
+   Output buffering is usually determined by *file*.
+   However, if *flush* is true, the stream is forcibly flushed.
+
 
    .. versionchanged:: 3.3
       Added the *flush* keyword argument.