Éric Araujo <mer...@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 <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