These functions can apply to classes, instances, and modules.
delattr(O,n)Delete the attribute whose name is from object
n.O
getattr(O,n)Get the attribute whose name is
from object n.O
hasattr(O,n)Does object have an attribute
named O?n
setattr(O,n,v)Set the attribute of object named
O to value
n.v