Hello Everybody<br><br>I want to create a structure within a structure i.e. nested structures in python.<br>I tried with everything but its not working. <br>my code is like this: <br><br>class L(Structure):<br><br>    def __init__(self,Name='ND',Addr=0,ds_obj = D()):<br>
<br>        self.Name = Name<br>        self.Addr = Addr<br>        self.ds_obj = ds_obj<br><br><br>class D(Structure):<br><br>    def  __init__(self,dataName='ND',index = 0,ele_obj=E()):<br><br>        self.dataName = dataName<br>
        self.index = index<br>        self.ele_obj = ele_obj<br>         <br><br>these are two structures. I want to refer D structure in L one and use it. I want to access the value of D structure like L.D.index = 0.<br>
<br>Please help me<br><br>Thanks in advance<br>Navneet  <br>