Author belopolsky
Recipients
Date 2006-08-23.22:01:15
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=835142

It looks like the class object is not deleted alltogether:



class X(object):
    def __init__(self, x):
        self.x = x
        print 'creating X(%r)' % x

    def __del__(self):
        print 'deleting X(%r)' % self.x
        
class A(object):
    x = X('new')

del A

Output:
creating X('new')
deleting X('new')

History
Date User Action Args
2008-01-20 09:58:57adminlinkissue1545463 messages
2008-01-20 09:58:57admincreate