summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2012-01-11 19:14:14 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2012-01-11 19:14:14 (GMT)
commit7a825ba3c655bbfb0a4dc4794e0f9f15b1dfd179 (patch)
treef3b38ea5b491f106a4f144d720d0aad23962aefe /Doc/library
parent610e8140de8e8f0640ee75c793664ba6d0cc27fd (diff)
parente247928fedde92e27801887857841f0975915d12 (diff)
downloadcpython-7a825ba3c655bbfb0a4dc4794e0f9f15b1dfd179.zip
cpython-7a825ba3c655bbfb0a4dc4794e0f9f15b1dfd179.tar.gz
cpython-7a825ba3c655bbfb0a4dc4794e0f9f15b1dfd179.tar.bz2
Merge with 3.2
#11633 Clarify print buffering (will change again if 13761 adds flush param).
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 3cf5335..3ef01cc 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -959,7 +959,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)