summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-04-05 04:24:43 -0700
committerGitHub <noreply@github.com>2023-04-05 04:24:43 -0700
commit8693ec214c2fa6cc1ea2e71f308735b6d9ea55f1 (patch)
tree548c2a298a2a82f6b766409c57732133f2e44ef2
parent8d4c9e5b8160b5b4a84c058a4bbcb6a0249af3e5 (diff)
downloadcpython-git-8693ec214c2fa6cc1ea2e71f308735b6d9ea55f1.tar.gz
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@Gerlach.CAM>
-rw-r--r--Doc/library/functions.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 4e4c49ce3a..7b69855caa 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -1423,8 +1423,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.