Searching a large dictionary

Support Desk support.desk.ipg at gmail.com
Wed Sep 23 00:30:15 CEST 2009


Chris,  Yes that is the correct syntax, thanks

On Tue, Sep 22, 2009 at 5:22 PM, Chris Rebert <clp2 at rebertia.com> wrote:

> On Tue, Sep 22, 2009 at 2:50 PM, Support Desk
> <support.desk.ipg at gmail.com> wrote:
> > I need help searching a large python dictionary. The dictionary is setup
> > like so
> >
> >
> 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}]
>
> That is not valid syntax. Do you mean you have a dictionary 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}]
> }
>
> Cheers,
> Chris
> --
> http://blog.rebertia.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090922/f2a7d66a/attachment.html>


More information about the Python-list mailing list