[New-bugs-announce] [issue10554] Context managerment support for subprocess.Popen
report at bugs.python.org
Sat Nov 27 21:47:40 CET 2010
New submission from Éric Araujo <merwok at netwok.org>:
I propose that __enter__ and __exit__ be added to subprocess.Popen. __enter__ returns self, __exit__ closes open file descriptors.
__exit__ could also do the same checks that __del__ does (and which I don’t entirely understand.
See also os.popen (os._wrap_close).
components: Library (Lib)
stage: needs patch
title: Context managerment support for subprocess.Popen
type: feature request
versions: Python 3.2
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce