RawConfigParser instances have the following methods:
| ) |
| ) |
DEFAULT is not
included in the list.
| section) |
| section) |
DEFAULT section is not acknowledged.
| section) |
| section, option) |
| filenames) |
import ConfigParser, os
config = ConfigParser.ConfigParser()
config.readfp(open('defaults.cfg'))
config.read(['site.cfg', os.path.expanduser('~/.myapp.cfg')])
| fp[, filename]) |
| section, option) |
| section, option) |
| section, option) |
| section, option) |
"1", "yes", "true", and "on",
which cause this method to return True, and "0", "no",
"false", and "off", which cause it to return False. These
string values are checked in a case-insensitive manner. Any other value will
cause it to raise ValueError.
| section) |
(name, value) pairs for each
option in the given section.
| section, option, value) |
| fileobject) |
| section, option) |
| section) |
True.
Otherwise return False.
| option) |
See About this document... for information on suggesting changes.