Re: Please help about an instance var

2007-02-13 Thread Gabriel Genellina
En Tue, 13 Feb 2007 23:54:29 -0300, <[EMAIL PROTECTED]> escribió: from UserDict import UserDict d = {1:2,3:4,5:6} d1 = UserDict(d) d1 > {1: 2, 3: 4, 5: 6} d1.data > {1: 2, 3: 4, 5: 6} > Here why both d1 and d1.data have the same values?As shown below,they're > different

Please help about an instance var

2007-02-13 Thread JStoneGT
>>> from UserDict import UserDict >>> d = {1:2,3:4,5:6} >>> d1 = UserDict(d) >>> d1 {1: 2, 3: 4, 5: 6} >>> d1.data {1: 2, 3: 4, 5: 6} Here why both d1 and d1.data have the same values?As shown below,they're different types. >>> type(d1) >>> type(d1.data) Please help.Thanks! -- http