def next(self):
        try:
            return next(self._page_iter)
        except __HOLE__:
            if not self.response_future.has_more_pages:
                if not self._list_mode:
                    self._current_rows = []
                raise

        self.fetch_next_page()
        self._page_iter = iter(self._current_rows)

        return next(self._page_iter)
dataset/ETHPy150Open datastax/python-driver/cassandra/cluster.py/ResultSet.next