Skip to content

Commit 8693ec2

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 8d4c9e5 commit 8693ec2

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
@@ -1423,8 +1423,9 @@ are always available. They are listed here in alphabetical order.
14231423
arguments are converted to text strings, :func:`print` cannot be used with
14241424
binary mode file objects. For these, use ``file.write(...)`` instead.
14251425

1426-
Whether the output is buffered is usually determined by *file*, but if the
1427-
*flush* keyword argument is true, the stream is forcibly flushed.
1426+
Output buffering is usually determined by *file*.
1427+
However, if *flush* is true, the stream is forcibly flushed.
1428+
14281429

14291430
.. versionchanged:: 3.3
14301431
Added the *flush* keyword argument.

0 commit comments

Comments
 (0)