(self, section, raw=False, vars=None)
Return a list of tuples with (name, value) for each option
        in the section.

        All % interpolations are expanded in the return values, based on the
        defaults passed into the constructor, unless the optional argument
        `raw' is true.  Additional substitutions may be provided using the
        `vars' argument, which must be a dictionary whose contents overrides
        any pre-existing defaults.

        The section DEFAULT is special.
Return a list of tuples with (name, value) for each option
        in the section.
Return a list of tuples with ( name value ) for each option in the section .
def items(self, section, raw=False, vars=None):
        """Return a list of tuples with (name, value) for each option
        in the section.

        All % interpolations are expanded in the return values, based on the
        defaults passed into the constructor, unless the optional argument
        `raw' is true.  Additional substitutions may be provided using the
        `vars' argument, which must be a dictionary whose contents overrides
        any pre-existing defaults.

        The section DEFAULT is special.
        """
        if section != DEFAULTSECT and not self.has_section(section):
            raise NoSectionError(section)
        if vars is None:
            options = list(self.data[section])
        else:
            options = []
            for x in self.data[section]:
                if x not in vars:
                    options.append(x)
            options.extend(vars.keys())

        if "__name__" in options:
            options.remove("__name__")

        d = ConfigDict(self, section, vars)
        if raw:
            return [(option, d[option])
                    for option in options]
        else:
            return [(option, self._interpolate(section, option, d[option], d))
                    for option in options]
def items ( self , section , raw = False , vars = None ) : if section != DEFAULTSECT and not self . has_section ( section ) : raise NoSectionError ( section ) if vars is None : options = list ( self . data [ section ] ) else : options = [ ] for x in self . data [ section ] : if x not in vars : options . append ( x ) options . extend ( vars . keys ( ) ) if "__name__" in options : options . remove ( "__name__" ) d = ConfigDict ( self , section , vars ) if raw : return [ ( option , d [ option ] ) for option in options ] else : return [ ( option , self . _interpolate ( section , option , d [ option ] , d ) ) for option in options ]