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:24:43 -07:00 committed by GitHub
parent 8d4c9e5b81
commit 8693ec214c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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