[Python-checkins] gh-81762: Clarify and simplify description of print's flush param (GH-103264)

miss-islington webhook-mailer at python.org
Wed Apr 5 07:49:15 EDT 2023


https://github.com/python/cpython/commit/9357fc9b89e808bf4731473e2e905a218b96ebf8
commit: 9357fc9b89e808bf4731473e2e905a218b96ebf8
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2023-04-05T04:49:08-07:00
summary:

gh-81762: Clarify and simplify description of print's flush param (GH-103264)

(cherry picked from commit c396b6ddf3da784349bac9ebf7f28c55bde016ea)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach at Gerlach.CAM>

files:
M Doc/library/functions.rst

diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 22972c038750..2ce3860440be 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -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.



More information about the Python-checkins mailing list