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

17.3. Intrinsics for objects

These functions can apply to classes, instances, and modules.

delattr(O,n)

Delete the attribute whose name is n from object O.

getattr(O,n)

Get the attribute whose name is n from object O.

hasattr(O,n)

Does object O have an attribute named n?

setattr(O,n,v)

Set the attribute of object O named n to value v.