Thomas Heller <thel...@ctypes.org> added the comment: Since ctypes should stay compatible with Python versions down to 2.4, a "with" block cannot be used.
Of course would closing the object returned by os.popen() explicitely be better style, but I wonder what the real problem is. My observations so far: - The bug doesn't happen with Python 2.X, only with 3.X. - If I assign the result of os.popen() to a local variable, _without_ closing it explicitely, the bug also doesn't happen (tested on Ubuntu). I really wonder what's going on here... ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6882> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com