Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #98702

can ConfigParser deal with repeating section header?

Newsgroups comp.lang.python
Date 2015-11-12 07:47 -0800
Message-ID <95dc81c4-31eb-4f45-8b9c-20a03b2f0caa@googlegroups.com> (permalink)
Subject can ConfigParser deal with repeating section header?
From John Zhao <johnzzhao@gmail.com>

Show all headers | View raw


I have a configuration file with repeating sections, for example, 

[INSTANCE]
Name=a

[INSTANCE]
Name=b


I hope I can use ConfigParser to read the file and store the configuration settings in arrays.  

Is that possible?

Thanks a lot.

John

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

can ConfigParser deal with repeating section header? John Zhao <johnzzhao@gmail.com> - 2015-11-12 07:47 -0800
  Re: can ConfigParser deal with repeating section header? Tim Chase <python.list@tim.thechases.com> - 2015-11-12 09:59 -0600
  Re: can ConfigParser deal with repeating section header? amorawski@magna-power.com - 2015-11-12 11:38 -0800

csiph-web