Searching Dictionary

Support Desk support.desk.ipg at gmail.com
Wed Sep 23 14:31:13 EDT 2009


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':value,'item8':value,'item9':value}],
Key2 :
[{'item':value,'item2':value,'item3':value,'item4':value,'item5':value','item6':value,'item7':value,'item8':value,'item9':value}],
Key3 :
[{'item':value,'item2':value,'item3':value,'item4':value,'item5':value','item6':value,'item7':value,'item8':value,'item9':value}]
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090923/3daeb2f0/attachment.html>


More information about the Python-list mailing list