def __eq__(self, other):
        """Compare two bags: they are equal if:
           * their table are the same table (object)
           * they contain the same set of cells"""
        if not isinstance(other, CoreBag):
            return False
        return (self.table is other.table and
                self.__store == other.__store)