>>> 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 'instance'> >>> type(d1.data) <type 'dict'> Please help.Thanks!
-- http://mail.python.org/mailman/listinfo/python-list