def __init__(self, section, name, default=None, sep=',', itemsep=':', doc=''): Option.__init__(self, section, name, default, doc) self.sep = sep self.itemsep = itemsep
def __init__(self, section, name, choices, doc=''): Option.__init__(self, section, name, to_utf8(choices[0]), doc)
def __init__(self, section, name, choices, doc=''): Option.__init__(self, section, name, _to_utf8(choices[0]), doc) self.choices = set(_to_utf8(choice).strip() for choice in choices)
def __init__(self, section, name, choices, doc=''): Option.__init__(self, section, name, to_utf8(choices[0]), doc)
def __init__(self, section, prefix, default=None, doc=''): Option.__init__(self, section, prefix, default, doc) self.prefix = prefix self._options = []
def __init__(self, section, name, default=None, choices='', doc=''): Option.__init__(self, section, name, default, doc) self.choices = filter(None, [c.strip() for c in choices.split(',')])
def __init__(self, section, name, default=None, choices='', doc=''): Option.__init__(self, section, name, default, doc) self.choices = filter(None, [c.strip() for c in choices.split(',')])
def __init__(self, section, prefix, default=None, doc=''): Option.__init__(self, section, prefix, default, doc) self.prefix = prefix self._options = []