File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1611,8 +1611,8 @@ are always available. They are listed here in alphabetical order.
16111611 arguments are converted to text strings, :func: `print ` cannot be used with
16121612 binary mode file objects. For these, use ``file.write(...) `` instead.
16131613
1614- Output buffering is usually determined by *file *.
1615- However, if * flush * is true, the stream is forcibly flushed.
1614+ Output buffering is usually determined by *file *. However, if * flush * is
1615+ true, the stream is forcibly flushed.
16161616
16171617 .. note ::
16181618
@@ -1634,6 +1634,8 @@ are always available. They are listed here in alphabetical order.
16341634
16351635 .. code-block :: python
16361636 from time import sleep
1637+ # This call performs one write operation, so the newline inside the string
1638+ # does not trigger an immediate flush by itself.
16371639 print (" Hello\n World" )
16381640 sleep(3 )
16391641 print (" Hi there!" )
You can’t perform that action at this time.
0 commit comments