Amaury Forgeot d'Arc added the comment: Well, there is a __del__: the one from the generator function. And it's part of the cycle. ---------- nosy: +amaury.forgeotdarc _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue17468> _______________________________________