(self, var)
Return the index of the given variable or meta attribute, represented
        with an instance of :class:`Variable`, `int` or `str`.
Return the index of the given variable or meta attribute, represented
        with an instance of :class:`Variable`, `int` or `str`.
Return the index of the given variable or meta attribute represented with an instance of : class : Variable int or str .
def index(self, var):
        """
        Return the index of the given variable or meta attribute, represented
        with an instance of :class:`Variable`, `int` or `str`.
        """

        idx = self._indices.get(var)
        if idx is not None:
            return idx
        equiv = self._get_equivalent(var)
        if equiv is not None:
            return self._indices[equiv]

        raise ValueError("'%s' is not in domain" % var)
def index ( self , var ) : idx = self . _indices . get ( var ) if idx is not None : return idx equiv = self . _get_equivalent ( var ) if equiv is not None : return self . _indices [ equiv ] raise ValueError ( "'%s' is not in domain" % var )