def __iter__(self):
    for group in self.groups:
      self.group_ipolicy = self.cluster.SimpleFillIPolicy(group.ipolicy)
      self.ndparams = self.cluster.SimpleFillND(group.ndparams)
      if self.want_diskparams:
        self.group_dp = self.cluster.SimpleFillDP(group.diskparams)
      else:
        self.group_dp = None
      yield group
Sets self.done to True, which means that the user has intended to enter the currently typed in text as their complete response. While self.done is True, this object will no longer process additional keyboard events.
dataset/ETHPy150Open ganeti/ganeti/lib/query.py/GroupQueryData.__iter__--crossover with--dataset/ETHPy150Open asweigart/pygcurse/pygcurse/__init__.py/PygcurseInput.enter