STINNER Victor added the comment: Martin: why don't you use "with"? ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue26741> _______________________________________