Antoine Pitrou added the comment: sock_finalize() is only called explicitly if there is a reference cycle. This is why sock_dealloc() has to call it. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue26590> _______________________________________