def __getattr__(self, attr): if attr == 'colind': warn("colind attribute no longer in use. Use .indices instead", DeprecationWarning) return self.indices else: return _cs_matrix.__getattr__(self, attr)