| |
- ConfigParser
- Error
-
- DuplicateSectionError
- InterpolationError
- MissingSectionHeaderError
- NoOptionError
- NoSectionError
- ParsingError
class ConfigParser |
|
no doc string |
| |
- __get(self, section, conv, option)
- no doc string
- __read(self, fp)
- Parse a sectioned setup file.
- The sections in setup file contains a title line at the top,
- indicated by a name in square brackets (`[]'), plus key/value
- options lines, indicated by `name: value' format lines.
- Continuation are represented by an embedded newline then
- leading whitespace. Blank lines, lines beginning with a '#',
- and just about everything else is ignored.
- __init__(self, defaults=None)
- no doc string
- add_section(self, section)
- Create a new section in the configuration.
- Raise DuplicateSectionError if a section by the specified name
- already exists.
- defaults(self)
- no doc string
- get(self, section, option, raw=0, vars=None)
- 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.
- getboolean(self, section, option)
- no doc string
- getfloat(self, section, option)
- no doc string
- getint(self, section, option)
- no doc string
- has_section(self, section)
- Indicate whether the named section is present in the configuration.
- The DEFAULT section is not acknowledged.
- options(self, section)
- no doc string
- read(self, filenames)
- Read and parse a list of filenames.
- sections(self)
- Return a list of section names, excluding [DEFAULT]
|
|