summaryrefslogtreecommitdiffstats
path: root/Doc/library/subprocess.rst
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-06-02 17:10:49 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-06-02 17:10:49 (GMT)
commit4b87620d5dde50949ef820ed241d9883ac9f96de (patch)
treebfeb9cf1ac4a5cd96be62dea2918a660fe058c09 /Doc/library/subprocess.rst
parent82bfcc87f023c0423443c6691b1d9ad2db4fb4a5 (diff)
downloadcpython-4b87620d5dde50949ef820ed241d9883ac9f96de.zip
cpython-4b87620d5dde50949ef820ed241d9883ac9f96de.tar.gz
cpython-4b87620d5dde50949ef820ed241d9883ac9f96de.tar.bz2
Merged revisions 81652 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r81652 | antoine.pitrou | 2010-06-02 19:08:47 +0200 (mer., 02 juin 2010) | 4 lines Issue #8873: add a documentation note about possible performance issues with the default of unbuffered IO in subprocess.Popen. ........
Diffstat (limited to 'Doc/library/subprocess.rst')
-rw-r--r--Doc/library/subprocess.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst
index 4b19761..c7a349b 100644
--- a/Doc/library/subprocess.rst
+++ b/Doc/library/subprocess.rst
@@ -89,6 +89,12 @@ This module defines one class called :class:`Popen`:
size. A negative *bufsize* means to use the system default, which usually means
fully buffered. The default value for *bufsize* is :const:`0` (unbuffered).
+ .. note::
+
+ If you experience performance issues, it is recommended that you try to
+ enable buffering by setting *bufsize* to either -1 or a large enough
+ positive value (such as 4096).
+
The *executable* argument specifies the program to execute. It is very seldom
needed: Usually, the program to execute is defined by the *args* argument. If
``shell=True``, the *executable* argument specifies which shell to use. On Unix,