[issue10554] Context managerment support for subprocess.Popen
Éric Araujo
report at bugs.python.org
Fri Dec 3 03:21:23 CET 2010
Éric Araujo <merwok at netwok.org> added the comment:
New doc looks good. Suggested changes: make with a link, explaing why it’s a context manager.
- Popen objects are supported as context managers via the ``with`` statement.
+ Popen objects are supported as context managers via the :keyword:`with`` statement, so that file descriptors are closed cleanly.
I agree with your view on __del__ vs. __exit__.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10554>
_______________________________________
More information about the Python-bugs-list
mailing list