RawConfigParser instances have the following methods:
| ) |
| ) |
DEFAULT is notincluded in the list.| section) |
| section) |
DEFAULT section is not acknowledged.| section) |
| section, option) |
| filenames) |
import ConfigParser, osconfig = 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 returnTrue, and"0","no","false", and"off", which cause it to returnFalse. Thesestring values are checked in a case-insensitive manner. Any other value willcause it to raiseValueError.| section) |
(name,value) pairs for eachoption in the givensection.| section, option, value) |
| fileobject) |
| section, option) |
| section) |
True.Otherwise returnFalse.| option) |