def __init__ ( self , enumtype , index , key ) : self . _enumtype = enumtype self . _index = index self . _key = key
should use enum in python
Set up a new instance .
def __init__(self, enumtype, index, key):
        """ Set up a new instance. """
        self._enumtype = enumtype
        self._index = index
        self._key = key