Package dics :: Module ConfigParserRT :: Class ConfigParser
[hide private]
[frames] | no frames]

Class ConfigParser
source code

RawConfigParser --+
                  |
                 ConfigParser
Known Subclasses:
SafeConfigParser

Instance Methods [hide private]
  get(self, section, option, raw=False, vars=None)
Get an option value for a given section.
  items(self, section, raw=False, vars=None)
Return a list of tuples with (name, value) for each option in the section.
  _interpolate(self, section, option, rawval, vars)

Inherited from RawConfigParser: __init__, add_section, defaults, getboolean, getfloat, getint, has_option, has_section, options, optionxform, read, readfp, remove_option, remove_section, sections, set, write

Inherited from RawConfigParser (private): _get, _read


Class Variables [hide private]

Inherited from RawConfigParser: OPTCRE, SECTCRE

Inherited from RawConfigParser (private): _boolean_states


Method Details [hide private]

get(self, section, option, raw=False, vars=None)

source code 

Get an option value for a given 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.
Overrides: RawConfigParser.get

items(self, section, raw=False, vars=None)

source code 

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.
Overrides: RawConfigParser.items

_interpolate(self, section, option, rawval, vars)

source code