[Python-checkins] cpython (2.7): #11633 about buffering of print

terry.reedy python-checkins at python.org
Sat Jan 14 06:07:40 CET 2012


http://hg.python.org/cpython/rev/8935a33773b9
changeset:   74376:8935a33773b9
branch:      2.7
parent:      74372:1e65183337ff
user:        Terry Jan Reedy <tjreedy at udel.edu>
date:        Sat Jan 14 00:06:37 2012 -0500
summary:
  #11633 about buffering of print

files:
  Doc/library/functions.rst |  4 +++-
  1 files changed, 3 insertions(+), 1 deletions(-)


diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -910,7 +910,9 @@
    *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 ``file.flush()`` to ensure, for instance,
+   immediate appearance on a screen.
 
    .. note::
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list