Next / Previous / Contents / TCC Help System / NM Tech homepage

26.3.9. __delattr__(): Delete an attribute

If a class has a .__delattr__() method, that method is called when an attribute is deleted. Here is the calling sequence:

    def __delattr__(self, name):
        ...

The name argument is the name of the attribute to be deleted.