Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #98711
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2015-11-12 11:38 -0800 |
| References | <95dc81c4-31eb-4f45-8b9c-20a03b2f0caa@googlegroups.com> |
| Message-ID | <d6f0cc21-dfcc-4572-85aa-777daf59112b@googlegroups.com> (permalink) |
| Subject | Re: can ConfigParser deal with repeating section header? |
| From | amorawski@magna-power.com |
On Thursday, November 12, 2015 at 10:48:11 AM UTC-5, John Zhao wrote: > 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 Here is one of possible solutions: http://stackoverflow.com/questions/9876059/parsing-configure-file-with-same-section-name-in-python
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll 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