Home | Trees | Index | Help |
|
---|
Module ConfigParser :: Class ConfigParser |
|
RawConfigParser
--+
|
ConfigParser
ConfigParserCaseSensitive
Method Summary | |
---|---|
Get an option value for a given section. | |
Return a list of tuples with (name, value) for each option in the section. | |
_interpolate(self,
section,
option,
rawval,
vars)
| |
_interpolation_replace(self,
match)
| |
Inherited from RawConfigParser | |
| |
Create a new section in the configuration. | |
| |
| |
| |
| |
Check for the existence of a given option in a given section. | |
Indicate whether the named section is present in the configuration. | |
Return a list of option names for the given section name. | |
| |
Read and parse a filename or a list of filenames. | |
Like read() but the argument must be a file-like object. | |
Remove an option. | |
Remove a file section. | |
Return a list of section names, excluding [DEFAULT] | |
Set an option. | |
Write an .ini-format representation of the configuration state. | |
| |
Parse a sectioned setup file. |
Class Variable Summary | |
---|---|
SRE_Pattern |
_KEYCRE = %\(([^\)]*)\)s|.
|
Inherited from RawConfigParser | |
SRE_Pattern |
OPTCRE = ([^:=\s][^:=]*)\s*([:=])\s*(.*)$
|
SRE_Pattern |
SECTCRE = \[([^\]]+)\]
|
dict |
_boolean_states = {'on': True, 'false': False, 'no': Fal...
|
Method Details |
---|
get(self, section, option, raw=False, 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.
|
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.
|
Class Variable Details |
---|
_KEYCRE
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sat Mar 4 13:36:24 2006 | http://epydoc.sf.net |