def __init__(self, name, spec=None): if not spec: spec = name ChoiceBase.__init__(self, name, {spec: True}, default=False)