Trees Indices Help
Python Standard Library
Module ConfigParser :: Class ConfigParser
[]

_ClassType ConfigParser

RawConfigParser --+
 |
 ConfigParser
Known Subclasses:

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)
_interpolation_replace(self, match)

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]
_KEYCRE = re.compile(r'%\(([^\)]*)\)s|.')

Inherited from RawConfigParser : OPTCRE , SECTCRE

Inherited from RawConfigParser (private): _boolean_states

Method Details [hide private]

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.

Overrides: RawConfigParser.get

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.

Overrides: RawConfigParser.items

Trees Indices Help
Python Standard Library

AltStyle によって変換されたページ (->オリジナル) /