def _set_current_rows(self, result):
        if isinstance(result, Mapping):
            self._current_rows = [result] if result else []
            return
        try:
            iter(result)  # can't check directly for generator types because cython generators are different
            self._current_rows = result
        except __HOLE__:
            self._current_rows = [result] if result else []
dataset/ETHPy150Open datastax/python-driver/cassandra/cluster.py/ResultSet._set_current_rows