Home | History | Annotate | Download | only in python2.7

Lines Matching refs:choices

432     if value in option.choices:
435 choices = ", ".join(map(repr, option.choices))
438 % (opt, value, choices))
457 choices : [string]
473 'choices',
638 if self.choices is not None:
639 # The "choices" attribute implies "choice" type.
667 if self.choices is None:
669 "must supply a list of choices for type 'choice'", self)
670 elif type(self.choices) not in (types.TupleType, types.ListType):
672 "choices must be a list of strings ('%s' supplied)"
673 % str(type(self.choices)).split("'")[1], self)
674 elif self.choices is not None:
676 "must not supply choices for type %r" % self.type, self)