]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-81762: Clarify and simplify description of print's flush param (GH-103264)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 5 Apr 2023 11:49:08 +0000 (04:49 -0700)
committerGitHub <noreply@github.com>
Wed, 5 Apr 2023 11:49:08 +0000 (04:49 -0700)
(cherry picked from commit c396b6ddf3da784349bac9ebf7f28c55bde016ea)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Doc/library/functions.rst

index 22972c0387509b37d5390f1e5fd1fdeb6e142558..2ce3860440be7763f2a622e4e3cffbe9ebf0a446 100644 (file)
@@ -1443,8 +1443,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.