Re: Searching a large dictionary

2009-09-23 Thread mike171562
}]} 252 being the key, I need to be able to search for a string in a given item , say 777 in the 'to' field so print wtf(dict,'to','777') would return {'252': [{'code': '51679', 'date': '2009-08-01 11:35:38', 'userfi

Re: Searching a large dictionary

2009-09-23 Thread mike171562
i am trying to search a large Python dictionary for a matching value. The results would need to be structured into a new dictionary with the same structure. Thanks. The structure is like this { Key : [{'item':value,'item2':value,' item3':value,'item4':value,'item5':value','item6':value,'item7':va