Configuration files¶
The Config type¶
-
Config.
__iter__
()¶ The
Config
class has an iterator which can be used to loop through all the entries in the configuration. Each element is aConfigEntry
object containing the name, level, and value of each configuration variable. Be aware that this may return multiple versions of each entry if they are set multiple times in the configuration files.
The Config
Mapping interface.
When using the mapping interface, the value is returned as a
string. In order to apply the git-config parsing rules, you can use
Config.get_bool()
or Config.get_int()
.