August 2018
Intermediate to advanced
366 pages
10h 14m
English
The read_config function does three major things:
option1 = value1 option2 = value2
The first feature is provided by trapping any MissingSectionHeaderError exception raised during parsing and automatically adding a [main] section if it's missing. All the options provided without any section will be recorded under the main section.
Providing default values is instead done by doing a first pass through all the sections and options declared in the schema and setting them to the ...