mirror of
https://github.com/python/cpython.git
synced 2025-10-02 05:12:23 +00:00
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:
parent
bd769d7d91
commit
9357fc9b89
1 changed files with 3 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue