def y(self):
    return self._d[1]

def __eq__(self, other):
    return self._d == other._d

def __ne__(self, other):
    return self._d != other._d

def __hash__(self):
    pass
Использование кортежей Python в качестве векторов