mirror of
https://github.com/python/cpython.git
synced 2025-10-05 14:41:07 +00:00
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. ........
This commit is contained in:
parent
bebd23b73b
commit
b56b50ddd1
1 changed files with 6 additions and 0 deletions
|
@ -94,6 +94,12 @@ This module defines one class called :class:`Popen`:
|
||||||
size. A negative *bufsize* means to use the system default, which usually means
|
size. A negative *bufsize* means to use the system default, which usually means
|
||||||
fully buffered. The default value for *bufsize* is :const:`0` (unbuffered).
|
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
|
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
|
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,
|
``shell=True``, the *executable* argument specifies which shell to use. On Unix,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue