def _convert_to_python(self, value, state):
        try:
            value = int(value)
        except (__HOLE__, TypeError):
            raise Invalid(self.message('integer', state), value, state)
        try:
            return self.list[value]
        except IndexError:
            raise Invalid(self.message('outOfRange', state), value, state)
dataset/ETHPy150Open formencode/formencode/formencode/validators.py/IndexListConverter._convert_to_python