[pypy-issue] [issue1317] os.popen & operator "with"
Amaury Forgeot d Arc
tracker at bugs.pypy.org
Wed Nov 7 19:33:51 CET 2012
Amaury Forgeot d Arc <amauryfa at gmail.com> added the comment:
A workaround is to use "contextlib.closing":
>>>> import os, contextlib
>>>> with contextlib.closing(os.popen("blah-blah")) as pipe:
.... print pipe
It's probably a win32-only issue; fix should go to module/posix/app_posix.py.
tag:easy
----------
nosy: +afa
status: unread -> chatting
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1317>
________________________________________
More information about the pypy-issue
mailing list