def games_gen(year, week=None, home=None, away=None, kind='REG', started=False):
 infos = _search_schedule(year, week, home, away, kind, started)
 if (not infos):
  return None
 def gen():
  for info in infos:
   g = nflgame.game.Game(info['eid'])
   if (g is None):
    continue
   (yield g)
 return gen()

def games_gen ( year , week = None , home = None , away = None , kind = 'REG' , started = False ) : infos = _search_schedule ( year , week , home , away , kind , started ) if ( not infos ) : return None def gen ( ) : for info in infos : g = nflgame . game . Game ( info [ 'eid' ] ) if ( g is None ) : continue ( yield g ) return gen ( )
games returns a generator of all games matching the given criteria .