def next(self):
    if not self.__buffer:
      self.__buffer = self._Next(self.__batch_size)
    try:
      return self.__buffer.pop(0)
    except __HOLE__:
      raise StopIteration
dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/api/datastore.py/Iterator.next