@property
    def was_applied(self):
        """
        For LWT results, returns whether the transaction was applied.

        Result is indeterminate if called on a result that was not an LWT request.

        Only valid when one of tne of the internal row factories is in use.
        """
        if self.response_future.row_factory not in (named_tuple_factory, dict_factory, tuple_factory):
            raise RuntimeError((self.response_future.row_factsory,) % "Cannot determine LWT result with row factory %s")
        if len(self.current_rows) != 1:
            raise RuntimeError("LWT result should have exactly one row. This has %d." % (len(self.current_rows)))

        row = self.current_rows[0]
        if isinstance(row, tuple):
            return row[0]
        else:
            return row['[applied]']
dataset/ETHPy150Open datastax/python-driver/cassandra/cluster.py/ResultSet.was_applied/swapped operands of `%`