def _Next(self, count=None):
    if count is not None and (not isinstance(count, (int, long)) or count <= 0):
      raise datastore_errors.BadArgumentError(
        'Argument to _Next must be an int greater than 0; received %s (a %s)' %
        (count, typename(count)))

    if self.__buffer:
      if count is None:
        entity_list = self.__buffer
        self.__buffer = []
        return entity_list
      elif count <= len(self.__buffer):
        entity_list = self.__buffer[:count]
        del self.__buffer[:count]
        return entity_list
      else:
        entity_list = self.__buffer
        self.__buffer = []
        count -= len(entity_list)
    else:
        entity_list = []


    if not self.__more_results:
      return entity_list

    req = datastore_pb.NextRequest()
    if count is not None:
      req.set_count(count)
    req.mutable_cursor().CopyFrom(self.__cursor)
    try:
      result = _MakeSyncCall('datastore_v3', 'Next', req,
                             datastore_pb.QueryResult())
    except apiproxy_errors.ApplicationError, err:
      raise _ToDatastoreError(err)

    return entity_list + self._ProcessQueryResult(result)
show an individual command, along with the last few runs
dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/api/datastore.py/Iterator._Next--crossover with--dataset/ETHPy150Open garethr/Asteroid/asteroid/apps/runner/views.py/show_command