mirror of
https://github.com/python/cpython.git
synced 2025-10-27 16:57:08 +00:00
merge - 7a3f3ad83676 Fixes Issue #12044.
This commit is contained in:
parent
79a11e71c6
commit
c9557af441
4 changed files with 10 additions and 3 deletions
|
|
@ -217,8 +217,8 @@ This module defines one class called :class:`Popen`:
|
|||
*creationflags*, if given, can be :data:`CREATE_NEW_CONSOLE` or
|
||||
:data:`CREATE_NEW_PROCESS_GROUP`. (Windows only)
|
||||
|
||||
Popen objects are supported as context managers via the :keyword:`with` statement,
|
||||
closing any open file descriptors on exit.
|
||||
Popen objects are supported as context managers via the :keyword:`with` statement:
|
||||
on exit, standard file descriptors are closed, and the process is waited for.
|
||||
::
|
||||
|
||||
with Popen(["ifconfig"], stdout=PIPE) as proc:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue