me is not supported.". Any
solution??
On Tue, Aug 17, 2010 at 3:27 PM, Jerry Hill wrote:
> On Tue, Aug 17, 2010 at 6:21 PM, abhijeet thatte
> wrote:
> > Hi,
> > I need to import few files depending on the user input. For eg if user
> gives
> > an input as "abcd&
Hi,
I need to import few files depending on the user input. For eg if user gives
an input as "abcd" then I will have * import "abcd.py".*
Can not have any hard coding in the code. Does any one know how to solve the
problem.
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
It worked.
Thanks,
Abhijeet
On Fri, Jul 9, 2010 at 4:03 PM, John Krukoff wrote:
> On Fri, 2010-07-09 at 15:46 -0700, abhijeet thatte wrote:
> > Hi,
> >
> >
> > Does any one know how to use pretty printing with ElementTree while
> > generating xml files.
>
Hi,
Does any one know how to use pretty printing with ElementTree while
generating xml files.
We can use that with lxml. But I want to stick with it ElementTree.
Thanks,
Abhijeet
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I have a huge dict structure like below:
*
{'module':{'reg_dict_0':{'name':'abc','reg_addr':'2004'},'reg_dict_1':{'name':'xyz','reg_addr':'2002'},'reg_dict_2':{'name':'pqr','reg_addr':'2008'}}
*
Module dict and reg_dicts contain many elements than shown.
I want to sort this 'module' dictionar
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:
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
:{...}}}
I think this example gives good insight into kind of dict structure I am
having. Now I want to have every dict tag as xml tag with hierarchy
maintained.
Thanks
Abhijeet
On Tue, Jun 15, 2010 at 11:09 PM, Stefan Behnel wrote:
> abhijeet thatte, 16.06.2010 03:05:
>
> I am a n
Hello,
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.)
So, it looks like : {elem1,elem2, elem3,dict1,{elem4,elem5, dict2 {elem6,
elem7, dict3{..