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

(cherry picked from commit c396b6ddf3)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
This commit is contained in:
Miss Islington (bot) 2023-04-05 04:49:08 -07:00 committed by GitHub
parent bd769d7d91
commit 9357fc9b89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.