Hi, I have the following -
messagesReceived = dict.fromkeys(("one","two"), {}) messagesReceived['one']['123'] = 11111 messagesReceived['two']['121'] = 22222 messagesReceived['two']['124'] = 43333 This gives: {'two': {'121': 22222, '123': 11111, '124': 43333}, 'one': {'121': 22222, '123': 11111, '124': 43333}} but I expected - {'one': {'121': 22222, }, 'two': {'123': 11111, '124': 43333}} What am I doing wrong? Thanks, Barry. -- http://mail.python.org/mailman/listinfo/python-list