[pypy-issue] [issue1317] os.popen & operator "with"

Al Korgun tracker at bugs.pypy.org
Wed Nov 7 18:57:57 CET 2012


New submission from Al Korgun <alkorgun at gmail.com>:

>>>> import os
>>>> with os.popen("blah-blah") as pipe:
....   print pipe
....
Traceback (most recent call last):
  File "<console>", line 1, in <module>
AttributeError: '_wrap_close' object is not a context manager (no __enter__/__ex
it__ method)

- this is really necessary feature.

----------
messages: 4969
nosy: pypy-issue
priority: feature
release: 1.9
status: unread
title: os.popen & operator "with"

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1317>
________________________________________


More information about the pypy-issue mailing list