def __init__ ( self , root_section = 'lago' , defaults = { } ) : self . root_section = root_section self . _defaults = defaults self . _config = defaultdict ( dict ) self . _config . update ( self . load ( ) ) self . _parser = None
python configparser how to set defaults
__init__ Args : root_section ( str ) : root section in the init defaults ( dict ) : Default dictonary to load can be empty .
def __init__(self, root_section='lago', defaults={}):
        """__init__
        Args:
            root_section (str): root section in the init
            defaults (dict): Default dictonary to load, can be empty.
        """

        self.root_section = root_section
        self._defaults = defaults
        self._config = defaultdict(dict)
        self._config.update(self.load())
        self._parser = None