delattr

delattr(object, name)

Deletes a named attribute from an object.

This is a relative of setattr. The arguments are an object and a string. The string must be the name of one of the object’s attributes. The function deletes the named attribute, provided the object allows it. For example, delattr(x, 'foobar') is equivalent to del x.foobar.

 

A Django site. this page was rendered by a django application in 0.03s 2008-08-29 23:33:07.513693. hosted by webfaction.