def remove_many(self, it):
        """Removes a collection of objects from the table."""
        # find indicies of objects in iterable
        to_be_deleted = list(it)
        del_indices = []
        for i, ob in enumerate(self.obs):
            try:
                tbd_index = to_be_deleted.index(ob)
            except ValueError:
                continue
            else:
                del_indices.append(i)
                to_be_deleted.pop(tbd_index)

            # quit early if we have found them all
            if not to_be_deleted:
                break

        for i in sorted(del_indices, reverse=True):
            self.pop(i)

        return self
def remove_many ( self , it ) : to_be_deleted = list ( it ) del_indices = [ ] for i , ob in enumerate ( self . obs ) : try : tbd_index = to_be_deleted . index ( ob ) except ValueError : continue else : del_indices . append ( i ) to_be_deleted . pop ( tbd_index ) if not to_be_deleted : break for i in sorted ( del_indices , reverse = True ) : self . pop ( i ) return self
Removes a collection of objects from the table.