Home | History | Annotate | Download | only in Inputs

Lines Matching refs:symbol

29     for symbol in attributes:
30 if symbol.startswith('__') or symbol.endswith('__'):
33 value = attributes[symbol]
35 # MyEnum.symbol == value
36 type.__setattr__(self, symbol, value)
37 self._nameMap[symbol] = value
39 # The first symbol with the given value is authoritative.
41 # MyEnum[value] == symbol
42 self._map[value] = symbol
52 # Gets the enum symbol for the specified value.
54 symbol = self._map.get(value)
55 if symbol is None:
57 return symbol
59 # Gets the enum symbol for the specified value or none.
61 symbol = self._map.get(value)
62 return symbol
65 def __setitem__(self, value, symbol):