Re: extract to dictionaries

2009-05-29 Thread Marius Retegan
Hi, On Fri, May 29, 2009 at 2:09 AM, Gary Herron wrote: > Marius Retegan wrote: > >> Hello >> I have simple text file that I have to parse. It looks something like >> this: >> >> parameters1 >> key1 value1 >> key2 value2 >> end &

extract to dictionaries

2009-05-28 Thread Marius Retegan
Hello I have simple text file that I have to parse. It looks something like this: parameters1 key1 value1 key2 value2 end parameters2 key1 value1 key2 value2 end So I want to create two dictionaries parameters1={key1:value1, key2:value2} and the same for parameters2. I woud