I have class structure as below. How can I create the following nested class and its properties dynamically.
class AA(object): class BB(object): def setBB1(self, value): ##some code def getBB1(self): bb1 = #somecode return bb1 bb1 = property(getBB1, setBB1, None, None) bb2 = ... bb = BB() class CC(object): .... cc = CC() aa = AA() print aa.bb.bb1 aa.bb.bb2 = '10' print aa.bb.bb2 I want to achive dot structure get or set value.i.e. aa.bb.bb1 Thanks, Gopal
-- http://mail.python.org/mailman/listinfo/python-list