[issue10554] Context managerment support for subprocess.Popen

Éric Araujo 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)
keywords: easy
messages: 122554
nosy: eric.araujo
priority: normal
severity: normal
stage: needs patch
status: open
title: Context managerment support for subprocess.Popen
type: feature request
versions: Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10554>
_______________________________________


More information about the Python-bugs-list mailing list