abhijeet thatte, 16.06.2010 20:41:
On Wed, Jun 16, 2010 at 10:57 AM, Stefan Behnel wrote:
You should start by writing down the XML structure that you want to build
for the above dict. That will make it clear what needs to be done.
/**
On Wed, Jun 16, 2010 at 10:43 AM, Ian Kelly wrote:
> On Wed, Jun 16, 2010 at 10:46 AM, abhijeet thatte
> wrote:
> > I am parsing some hardware format which finally I need to convert in xml.
> > The intermediate step is dicts.
> > So, the structure looks like this:
> >
> {chip_name:'myChip',chip_
On Wed, Jun 16, 2010 at 10:57 AM, Stefan Behnel wrote:
> Hi, please avoid top-posting.
>
> abhijeet thatte, 16.06.2010 18:46:
>
> On Tue, Jun 15, 2010 at 11:09 PM, Stefan Behnel wrote:
>>
>>> abhijeet thatte, 16.06.2010 03:05:
>>>
I am a novice Python user. I am using Python to parse some h
Hi, please avoid top-posting.
abhijeet thatte, 16.06.2010 18:46:
On Tue, Jun 15, 2010 at 11:09 PM, Stefan Behnel wrote:
abhijeet thatte, 16.06.2010 03:05:
I am a novice Python user. I am using Python to parse some hardware
specifications and create xml files from them.
I generate dict of reall
On Wed, Jun 16, 2010 at 10:46 AM, abhijeet thatte
wrote:
> I am parsing some hardware format which finally I need to convert in xml.
> The intermediate step is dicts.
> So, the structure looks like this:
> {chip_name:'myChip',chip_clock:'3.07',chip_peripherals:{peripheral1:{mode:'mode1',register:{
I am parsing some hardware format which finally I need to convert in xml.
The intermediate step is dicts.
So, the structure looks like this:
{chip_name:'myChip',chip_clock:'3.07',chip_peripherals:{peripheral1:{mode:'mode1',register:{}},peripheral2:{},peripheral3:{...}}}
I think this example gi
abhijeet thatte, 16.06.2010 03:05:
I am a novice Python user. I am using Python to parse some hardware
specifications and create xml files from them.
I generate dict of really huge sizes. (I am parsing some 10,000 register
definitions.)
Why do you need these intermediate dicts?
So, it looks