ConfigParser and inifile

domi warp10 at hushmail.com
Thu Jul 12 11:35:53 CEST 2001


Hello All,

could someone solve this problem?
I would like to tell ConfigParser to parse an ini-file from one section to
the other. The ini-file looks like this:

[section1]
name:...
group:...

[section2]
name:...
group:...

[section3]
name:...
group:...

Now if I let the ConfigParser parse this ini-file like this:

for section in config.sections():
    ...(do something)

the parser doesn't step thru section1 to section2 and so on. I need the
given sequence in the ini-file.

Thanks, domi





More information about the Python-list mailing list