def __init__(self, option): if isinstance(option, cfg.Option): self._option = option else: self._option = cfg.OptionString(option)
def __init__(self, default=""): option = cfg.OptionString(default) super(StringOption, self).__init__(option)