summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2012-01-11 19:09:49 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2012-01-11 19:09:49 (GMT)
commite247928fedde92e27801887857841f0975915d12 (patch)
tree9a47461d2d53e003db78b9e3d8cca50322089db0 /Doc/library
parentf4ec3c5a92faa671d15f80884c40a101495f20ae (diff)
downloadcpython-e247928fedde92e27801887857841f0975915d12.zip
cpython-e247928fedde92e27801887857841f0975915d12.tar.gz
cpython-e247928fedde92e27801887857841f0975915d12.tar.bz2
Closes #11633 Clarify print buffering.
Diffstat (limited to 'Doc/library')
-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 e5d4a99..ff6d1c0 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)