Guido van Rossum added the comment: I just reverted it. I put a bit of debugging in the call to _real_close(), and even with Christian's corrections it fails miserably. I prefer leaking. __________________________________ Tracker <report at bugs.python.org> <http://bugs.python.org/issue1469> __________________________________