def _convert_to_python(self, value, state):
        try:
            return self.dict[value]
        except __HOLE__:
            if self.hideDict:
                raise Invalid(self.message('keyNotFound', state), value, state)
            else:
                items = sorted(self.dict)
                items = '; '.join(map(repr, items))
                raise Invalid(self.message('chooseKey',
                    state, items=items), value, state)
dataset/ETHPy150Open formencode/formencode/formencode/validators.py/DictConverter._convert_to_python