<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I'm parsing some data of the form:
>
> OuterName1 InnerName1=5,InnerName2=7,InnerName3=34;
> OuterName2 InnerNameX=43,InnerNameY=67,InnerName3=21;
> OuterName3
> and so on
>
I wrote pyparsing for just this kind of job. Using
[EMAIL PROTECTED] writes:
> First, can dictionaries contain dictionaries?
Yes.
> Second, how to create each successive inner dictionary when populating
> it? Python doesn't have constructors and (having all of 4 weeks of
> Python experience) it isn't clear to me whether in nested while loops
> th
I'm parsing some data of the form:
OuterName1 InnerName1=5,InnerName2=7,InnerName3=34;
OuterName2 InnerNameX=43,InnerNameY=67,InnerName3=21;
OuterName3
and so on
These are fake names I've made up to illustrate the point more clearly.
(the embedded device device can't produce XML and