[issue11965] Simplify context manager in os.popen

Éric Araujo report at bugs.python.org
Sat Apr 30 17:49:30 CEST 2011


New submission from Éric Araujo <merwok at netwok.org>:

Previous to 3.2, os.popen was made a context manager thanks to a private helper, os._wrap_close (contextlib.closing was maybe unavailable due to a bootstrapping issue).  Now that subprocess.Popen directly implements the context manager protocol, this could be cleaned up.

----------
components: Library (Lib)
keywords: easy
messages: 134870
nosy: eric.araujo
priority: normal
severity: normal
stage: needs patch
status: open
title: Simplify context manager in os.popen
versions: Python 3.2

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


More information about the Python-bugs-list mailing list