March 2003
Intermediate to advanced
656 pages
39h 30m
English
__delattr__
__delattr__(self,name)At every request to unbind attribute
x.y
(typically, a del statement del
x.y),
Python calls x
.__delattr__('y'). All
the considerations discussed for __setattr__
also apply to __delattr__. Python ignores the
return value of __delattr__. If __delattr__ is absent, Python usually translates
del
x.y
into del
x
.__dict__['y'].
Read now
Unlock full access