Why won\'t this work? I\'m trying to make an instance of a class delete itself.
>>> class A(): def kill(self): del self >>>
You don't need to use del to delete instances in the first place. Once the last reference to an object is gone, the object will be garbage collected. Maybe you should tell us more about the full problem.