Comment Comment by lauriat Thanks!Good point. However setting def __bool__(self): return self.nonEmpty would mess up certain methods e.g. .index for nested Arrays as __eq__ is computed elementwise and bool(Array(False, False)) would evaluate to True.Maybe a warning would be appropriate? (as is the case with ndarrays) parent lauriat 5 years ago
Good point. However setting
would mess up certain methods e.g. .index for nested Arrays as __eq__ is computed elementwise and bool(Array(False, False)) would evaluate to True.Maybe a warning would be appropriate? (as is the case with ndarrays)