Determining Instance Attributes : Instance « Class « Python Tutorial






class C(object):
    pass

c = C()
c.foo = 'roger'
c.bar = 'shrubber'
print dir(c)








11.10.Instance
11.10.1.Instantiation: Creating Instances by Invoking Class Object
11.10.2.__del__() "Destructor" Method
11.10.3.Determining Instance Attributes
11.10.4.Object interaction
11.10.5.Instance Objects Are Concrete Items