[Python-Dev] __del__ and subclassed types

Matt Wilson msw@redhat.com
Wed, 10 Oct 2001 13:27:53 -0400


Python 2.2a4:

class myList(type([])):
    def __del__(self):
        print "list dealloced"

list = myList()
del list

never prints "list dealloced".  Is this supposed to work?

Cheers,

Matt