|
HWRF
trunk@4391
|
Internal class that implements HWRFConfig.strinterp() More...
Internal class that implements HWRFConfig.strinterp()
This class is part of the implementation of HWRFConfig: it is used to interpolate strings using a syntax similar to string.format(), but it allows recursion in the config sections, and it also is able to use the [config] and [dir] sections as defaults for variables not found in the current section.
Public Member Functions | |
| def | __init__ (self) |
| Constructor for ConfFormatter. | |
| def | get_value (self, key, args, kwargs) |
| Return the value of variable, or a substitution. More... | |
| def hwrf.config.ConfFormatter.get_value | ( | self, | |
| key, | |||
| args, | |||
| kwargs | |||
| ) |
Return the value of variable, or a substitution.
Never call this function. It is called automatically by str.format. It provides the value of an variable, or a string substitution.
| key | the string key being analyzed by str.format() |
| args | the indexed arguments to str.format() |
| kwargs | the keyword arguments to str.format() |
1.8.10