Serhiy Storchaka added the comment: Ah, you are right, there is a leak. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue27981> _______________________________________