Determining Instance Attributes : Instance : Class PYTHON TUTORIALS


PYTHON TUTORIALS » Class » Instance »

 

Determining Instance Attributes


class C(object):
    pass

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



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Class
» Instance