Re: What data structure to use, and how?

2009-05-16 Thread jon michaels
Works like a charm. Thanks a lot Alex, it saves me a lot of searching and trying. On Sun, May 17, 2009 at 2:37 AM, Alex Gaynor wrote: > > > On Sat, May 16, 2009 at 4:52 PM, Jon wrote: > >> >> >> Hi all. >> >> I think django really rocks, but i have a question: >> >> I wrote a script in python t

Re: What data structure to use, and how?

2009-05-16 Thread Alex Gaynor
On Sat, May 16, 2009 at 4:52 PM, Jon wrote: > > > Hi all. > > I think django really rocks, but i have a question: > > I wrote a script in python that will get some values from servers and > puts in them in a dictionary. > > The data is in the following format > {'somehost': ['yes', '2'], 'remoteh

What data structure to use, and how?

2009-05-16 Thread Jon
Hi all. I think django really rocks, but i have a question: I wrote a script in python that will get some values from servers and puts in them in a dictionary. The data is in the following format {'somehost': ['yes', '2'], 'remotehost': ['yes', '1'], 'localhost': ['yes', '1']} In python, i ca