def identical(self, other):
        """Like equals, but also checks attributes.
        """
        try:
            return (utils.dict_equiv(self.attrs, other.attrs) and
                    self.equals(other))
        except (__HOLE__, AttributeError):
            return False
dataset/ETHPy150Open pydata/xarray/xarray/core/variable.py/Variable.identical