yt.config.YTConfigParser.get

YTConfigParser.get(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.

Previous topic

yt.config.YTConfigParser.defaults

Next topic

yt.config.YTConfigParser.getboolean

This Page