'take the member variables of other and assign them to self'

def _set_self(self, other, copy=False):

    if copy:
        other = other.copy()
    self.data = other.data
    self.indices = other.indices
    self.indptr = other.indptr
    self.shape = other.shape
