def __setitem__(self, index, value):
        """Sets a component as though the vector were a list."""

        try:
            self._v[index] = 1.0 * value
        except IndexError:
            raise IndexError("There are 2 values in this object, index should be 0 or 1!")
        except __HOLE__:
            raise TypeError("Must be a number")
dataset/ETHPy150Open PythonProgramming/Beginning-Game-Development-with-Python-and-Pygame/gameobjects/vector2.py/Vector2.__setitem__