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

joblack johannes.black at gmail.com
Thu Jun 3 22:21:17 EDT 2010


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



More information about the Python-list mailing list