Your problem can be simplified : class A: pop = 11 def __del__(self): print A.pop
if __name__ == '__main__': objA = A() Exception exceptions.AttributeError: "'NoneType' object has no attribute 'pop'" in <bound method A.__del__ of <__main__.A instance at 0x01474A08>> ignored I got the same error message, and I don't know why ? it looks like the class variable can't be accessed from __del__? Pujo -- http://mail.python.org/mailman/listinfo/python-list