New submission from Antoine Pitrou <pit...@free.fr>: This works under trunk but fails under py3k:
>>> import os >>> with os.popen("ls", "r") as f: ... print(f.read()) ... Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: __exit__ ---------- components: Library (Lib) messages: 96151 nosy: pitrou priority: normal severity: normal stage: needs patch status: open title: os.popen() objects don't support the context manager protocol type: behavior versions: Python 3.1, Python 3.2 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7461> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com