![]() |
Qucs-S S-parameter Viewer & RF Synthesis Tools
|


Public Member Functions | |
| __init__ (self, config) | |
| resolve (self, s) | |
| ext_convert (self, value) | |
| cfg_convert (self, value) | |
| convert (self, value) | |
| configure_custom (self, config) | |
| as_tuple (self, value) | |
Public Attributes | |
| config | |
Static Public Attributes | |
| CONVERT_PATTERN = re.compile(r'^(?P<prefix>[a-z]+)://(?P<suffix>.*)$') | |
| WORD_PATTERN = re.compile(r'^\s*(\w+)\s*') | |
| DOT_PATTERN = re.compile(r'^\.\s*(\w+)\s*') | |
| INDEX_PATTERN = re.compile(r'^\[\s*(\w+)\s*\]\s*') | |
| DIGIT_PATTERN = re.compile(r'^\d+$') | |
| dict | value_converters |
| importer = staticmethod(__import__) | |
The configurator base class which defines some useful defaults.
| pip._vendor.distlib.compat.BaseConfigurator.as_tuple | ( | self, | |
| value | |||
| ) |
Utility function which converts lists to tuples.
| pip._vendor.distlib.compat.BaseConfigurator.cfg_convert | ( | self, | |
| value | |||
| ) |
Default converter for the cfg:// protocol.
| pip._vendor.distlib.compat.BaseConfigurator.configure_custom | ( | self, | |
| config | |||
| ) |
Configure an object with a user-supplied factory.
Reimplemented in pip._vendor.distlib.util.Configurator.
| pip._vendor.distlib.compat.BaseConfigurator.convert | ( | self, | |
| value | |||
| ) |
Convert values to an appropriate type. dicts, lists and tuples are replaced by their converting alternatives. Strings are checked to see if they have a conversion format and are converted if they do.
| pip._vendor.distlib.compat.BaseConfigurator.ext_convert | ( | self, | |
| value | |||
| ) |
Default converter for the ext:// protocol.
| pip._vendor.distlib.compat.BaseConfigurator.resolve | ( | self, | |
| s | |||
| ) |
Resolve strings to objects using standard import and attribute syntax.
|
static |