Re: section with in a section config file and reading that config file

2012-10-19 Thread Steven D'Aprano
On Fri, 19 Oct 2012 23:59:03 +0200, Tarek Ziadé wrote: > On 10/19/12 11:29 PM, Steven D'Aprano wrote: >> On Fri, 19 Oct 2012 12:09:53 +0200, Tarek Ziadé wrote: >> >>> On 10/19/12 11:51 AM, kampy wrote: hi all, my requirement is to have section with in a section in config parameters

Re: section with in a section config file and reading that config file

2012-10-19 Thread Tarek Ziadé
On 10/19/12 11:29 PM, Steven D'Aprano wrote: On Fri, 19 Oct 2012 12:09:53 +0200, Tarek Ziadé wrote: On 10/19/12 11:51 AM, kampy wrote: hi all, my requirement is to have section with in a section in config parameters ex: [AAA] [BBB] a=1 b=1 [CCC] a=1 b=2

Re: section with in a section config file and reading that config file

2012-10-19 Thread Steven D'Aprano
On Fri, 19 Oct 2012 12:09:53 +0200, Tarek Ziadé wrote: > On 10/19/12 11:51 AM, kampy wrote: >> hi all, >> my requirement is to have section with in a section in config >> parameters ex: >> [AAA] >> [BBB] >> a=1 >> b=1 >> [CCC] >> a=1 >> b=2 >> Any one help me in

Re: section with in a section config file and reading that config file

2012-10-19 Thread rusi
On Oct 19, 6:58 pm, Tarek Ziadé wrote: > On 10/19/12 12:22 PM, narasimha1...@gmail.com wrote: > > > yes but it is not only for one structure like above there will be many > > sections like that > > I'd use yaml or json then... Maybe http://www.voidspace.org.uk/python/configobj.html ?? -- http:/

Re: section with in a section config file and reading that config file

2012-10-19 Thread Tarek Ziadé
On 10/19/12 12:22 PM, narasimha1...@gmail.com wrote: yes but it is not only for one structure like above there will be many sections like that I'd use yaml or json then... -- http://mail.python.org/mailman/listinfo/python-list

Re: section with in a section config file and reading that config file

2012-10-19 Thread narasimha18sv
On Friday, 19 October 2012 15:39:57 UTC+5:30, Tarek Ziadé wrote: > On 10/19/12 11:51 AM, kampy wrote: > > > hi all, > > > my requirement is to have section with in a section in config parameters > > > ex: > > > [AAA] > > > [BBB] > > > a=1 > > > b=1 > > > [CCC] > > >

Re: section with in a section config file and reading that config file

2012-10-19 Thread Tarek Ziadé
On 10/19/12 11:51 AM, kampy wrote: hi all, my requirement is to have section with in a section in config parameters ex: [AAA] [BBB] a=1 b=1 [CCC] a=1 b=2 Any one help me in understanding how to make sure that config file to have a structure like this and readin

section with in a section config file and reading that config file

2012-10-19 Thread kampy
hi all, my requirement is to have section with in a section in config parameters ex: [AAA] [BBB] a=1 b=1 [CCC] a=1 b=2 Any one help me in understanding how to make sure that config file to have a structure like this and reading with the config parser -- http://mail.py