New submission from Éric Araujo <mer...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue10554> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com