(self, section, option, type=None, default=None, raw=False)
Get an option value for given section/option or return default.
        If type is specified, return as type.
Get an option value for given section/option or return default.
        If type is specified, return as type.
Get an option value for given section / option or return default . If type is specified return as type .
def Get(self, section, option, type=None, default=None, raw=False):
        """
        Get an option value for given section/option or return default.
        If type is specified, return as type.
        """
        # TODO Use default as fallback, at least if not None
        # Should also print Warning(file, section, option).
        # Currently may raise ValueError
        if not self.has_option(section, option):
            return default
        if type == 'bool':
            return self.getboolean(section, option)
        elif type == 'int':
            return self.getint(section, option)
        else:
            return self.get(section, option, raw=raw)
def Get ( self , section , option , type = None , default = None , raw = False ) : # TODO Use default as fallback, at least if not None # Should also print Warning(file, section, option). # Currently may raise ValueError if not self . has_option ( section , option ) : return default if type == 'bool' : return self . getboolean ( section , option ) elif type == 'int' : return self . getint ( section , option ) else : return self . get ( section , option , raw = raw )