Re: Config parser module

2005-09-27 Thread qqcq6s59
wow, Thanks alex, this rocks really, [ i am new to OOP style in python] I am trying to implement it on similar lines, I`ll comeback if I encounter any trouble. thanks again -Jiro Paul McGuire wrote: > <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hi all > > I am a newbie and

Re: Config parser module

2005-09-24 Thread Paul McGuire
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all > I am a newbie and I just saw a ongoing thread on Fileprocessing which > talks abt config parser. > I have writen many pyhton program to parse many kind of text files by > using string module and regex. But after reading that con

Re: Config parser module

2005-09-23 Thread qqcq6s59
Thanks a lot for Dale and Larry, I have not tried the OOP way yet like you mentioned, I will try to create a parser soon, maybe I will post it in the net after that, it may be useful to others too, Thanks again -Jiro -- http://mail.python.org/mailman/listinfo/python-list

Re: Config parser module

2005-09-23 Thread Larry Bates
ConfigParser is for parsing configuration files of the format: [section1] option1= option2= . . . optionN= [section2] option1= option2= . . . optionN= Your data doesn't fit that format. Looks to me like you should write a small class object for each different type of record that can be found in

Re: Config parser module

2005-09-23 Thread Dale Strickland-Clark
The Config Parser module is for extracting data from and writing to a specific format of file, generally known as a config file. As explained in the documentation, a config file is in the same format as .ini files frequently found on windows - especially used by older software. It is a very handy