can ConfigParser deal with repeating section header?
amorawski at magna-power.com
amorawski at magna-power.com
Thu Nov 12 14:38:14 EST 2015
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
More information about the Python-list
mailing list