Skip to content

Commit 9357fc9

Browse files
gh-81762: Clarify and simplify description of print's flush param (GH-103264)
(cherry picked from commit c396b6d) Co-authored-by: C.A.M. Gerlach <[email protected]>
1 parent bd769d7 commit 9357fc9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Doc/library/functions.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1443,8 +1443,9 @@ are always available. They are listed here in alphabetical order.
14431443
arguments are converted to text strings, :func:`print` cannot be used with
14441444
binary mode file objects. For these, use ``file.write(...)`` instead.
14451445

1446-
Whether the output is buffered is usually determined by *file*, but if the
1447-
*flush* keyword argument is true, the stream is forcibly flushed.
1446+
Output buffering is usually determined by *file*.
1447+
However, if *flush* is true, the stream is forcibly flushed.
1448+
14481449

14491450
.. versionchanged:: 3.3
14501451
Added the *flush* keyword argument.

0 commit comments

Comments
 (0)