def next(self):
        try:
            return self.cache.popleft()
        except __HOLE__:
            more = self.cursor.more()
            if not more:
                raise StopIteration()
            else:
                self.cache.extend(more)
                return self.next()
dataset/ETHPy150Open dieseldev/diesel/diesel/protocols/mongodb.py/MongoIter.next