I have a configuration file that I am reading using RawConfigParser in the ConfigParser standard library. My configuration file has a section [DEFAULT], and then a section [specific]. When I go through the options in the [special] section, it includes those in the [DEFAULT] section, which is what should happen.
However, for reports, I wanted to know if the parameter was set in the [specific] section or in [DEFAULT]. Is there a way to do this with the RawConfigParser interface, or do I have no option but to manually parse the file? (I searched a bit, and I'm starting to fear the worst ...)
for example
[INITIAL]
name = a
last name = b
[SECTION]
name = b
age = 23
, RawConfigParser, [ ] []?
( , [ ] , , , )
!