Re: questions about how to parse a string and put it in a dictionary

2010-06-04 Thread Tim Chase
On 06/03/2010 09:21 PM, joblack wrote: I've got a string which (without any CR or LF) consists of 'attribute1=attribute_value;attribute2=attribute_value2; ...' and I want them to read in a dictionary so that the attribute name is the key and the attribute value is the data. Any ideas for an im

Re: questions about how to parse a string and put it in a dictionary

2010-06-03 Thread Bryan
joblack wrote: > I've got a string which (without any CR or LF) consists of > > 'attribute1=attribute_value;attribute2=attribute_value2; ...' Technically that's short of a rigorous specification, but it sure looks like a standard web "query string", the content type known as "application/x-www-for

Re: questions about how to parse a string and put it in a dictionary

2010-06-03 Thread MRAB
joblack wrote: I've got a string which (without any CR or LF) consists of 'attribute1=attribute_value;attribute2=attribute_value2; ...' and I want them to read in a dictionary so that the attribute name is the key and the attribute value is the data. Any ideas for an implementation? Greetings

Re: questions about how to parse a string and put it in a dictionary

2010-06-03 Thread Benjamin Kaplan
On Thu, Jun 3, 2010 at 7:21 PM, joblack wrote: > I've got a string which (without any CR or LF) consists of > > 'attribute1=attribute_value;attribute2=attribute_value2; ...' > > and I want them to read in a dictionary so that the attribute name is > the key and the attribute value is the data. > >

questions about how to parse a string and put it in a dictionary

2010-06-03 Thread joblack
I've got a string which (without any CR or LF) consists of 'attribute1=attribute_value;attribute2=attribute_value2; ...' and I want them to read in a dictionary so that the attribute name is the key and the attribute value is the data. Any ideas for an implementation? Greetings and thanks jb --