Antoine Pitrou <pitrou at free.fr> added the comment: Ok, my bad. The implementation already has a __del__ method. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue4928> _______________________________________