def initRepeat(container, func, n):
 return container((func() for _ in xrange(n)))

def initRepeat ( container , func , n ) : return container ( ( func ( ) for _ in xrange ( n ) ) )
call the function *container* with a generator function corresponding to the calling *n* times the function *func* .