summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2012-01-11 14:09:49 -0500
committerTerry Jan Reedy <tjreedy@udel.edu>2012-01-11 14:09:49 -0500
commit4d3d2432365db7b742df2a000a196af6ad29a8b9 (patch)
treeb0ff7111b6110f56a73bb1eddc24409ff5ceb370
parent448babd9098f60c5fb6039aec4f2cc9c19b36c24 (diff)
downloadcpython-4d3d2432365db7b742df2a000a196af6ad29a8b9.tar.gz
Closes #11633 Clarify print buffering.
-rw-r--r--Doc/library/functions.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index e5d4a99c95..ff6d1c00cd 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -954,7 +954,9 @@ are always available. They are listed here in alphabetical order.
*end*.
The *file* argument must be an object with a ``write(string)`` method; if it
- is not present or ``None``, :data:`sys.stdout` will be used.
+ is not present or ``None``, :data:`sys.stdout` will be used. Output buffering
+ is determined by *file*. Use ``sys.stdout.flush()`` to ensure immediate
+ appearance on a screen.
.. function:: property(fget=None, fset=None, fdel=None, doc=None)