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

This commit is contained in:
C.A.M. Gerlach 2023-04-05 06:16:36 -05:00 committed by GitHub
parent 47753ecde2
commit c396b6ddf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -1444,8 +1444,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.