Re: Searching a large dictionary

2009-09-23 Thread mike171562
,'item9':value}] } On Sep 22, 7:16 pm, Dave Angel da...@ieee.org wrote: Support Desk 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

Re: Searching a large dictionary

2009-09-23 Thread mike171562
,'item9':value}] } On Sep 22, 7:16 pm, Dave Angel da...@ieee.org wrote: Support Desk 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

Re: Searching a large dictionary

2009-09-23 Thread Rhodri James
On Wed, 23 Sep 2009 22:52:56 +0100, mike171562 support.desk@gmail.com wrote: Sorry for the confusion, Simon, this is almost exactly what I need, but i need to be able to search for a string in a given value of an item Here is an example of the dict I am working with {'252': [{'code':

Re: Searching a large dictionary

2009-09-23 Thread Sean DiZazzo
On Sep 23, 4:05 pm, Rhodri James rho...@wildebst.demon.co.uk wrote: On Wed, 23 Sep 2009 22:52:56 +0100, mike171562   support.desk@gmail.com wrote: Sorry for the confusion, Simon, this is almost exactly what I need, but i need to be able to search for a string in a given value of an

Re: Searching a large dictionary

2009-09-23 Thread Martien Verbruggen
On Wed, 23 Sep 2009 14:52:56 -0700 (PDT), mike171562 support.desk@gmail.com wrote: Sorry for the confusion, Simon, this is almost exactly what I need, but i need to be able to search for a string in a given value of an item Here is an example of the dict I am working with

Re: Searching a large dictionary

2009-09-23 Thread Rhodri James
On Thu, 24 Sep 2009 01:03:26 +0100, Sean DiZazzo half.ital...@gmail.com wrote: I like to perform what I call objectify on nested dictionary type stuff into classes. class TestPart(object): def __init__(self, **kwargs): for k,v in kwargs.items():

Searching a large dictionary

2009-09-22 Thread Support Desk
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

Re: Searching a large dictionary

2009-09-22 Thread Chris Rebert
On Tue, Sep 22, 2009 at 2:50 PM, Support Desk support.desk@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

Re: Searching a large dictionary

2009-09-22 Thread Simon Forman
On Tue, Sep 22, 2009 at 5:50 PM, Support Desk support.desk@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

Re: Searching a large dictionary

2009-09-22 Thread Support Desk
Chris, Yes that is the correct syntax, thanks On Tue, Sep 22, 2009 at 5:22 PM, Chris Rebert c...@rebertia.com wrote: On Tue, Sep 22, 2009 at 2:50 PM, Support Desk support.desk@gmail.com wrote: I need help searching a large python dictionary. The dictionary is setup like so Key

Re: Searching a large dictionary

2009-09-22 Thread Simon Forman
, Support Desk support.desk@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

Re: Searching a large dictionary

2009-09-22 Thread Chris Rebert
On Tue, Sep 22, 2009 at 5:22 PM, Chris Rebert c...@rebertia.com wrote: On Tue, Sep 22, 2009 at 2:50 PM, Support Desk support.desk@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

Re: Searching a large dictionary

2009-09-22 Thread Chris Rebert
-Original Message- From: Chris Rebert c...@rebertia.com Sent: Tuesday, September 22, 2009 5:35 PM To: Support Desk support.desk@gmail.com Cc: python-list@python.org Subject: Re: Searching a large dictionary On Tue, Sep 22, 2009 at 5:22 PM, Chris Rebert c...@rebertia.com wrote

Re: Searching a large dictionary

2009-09-22 Thread Dave Angel
Support Desk 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