def ExecutionResult(*sources, **options):
 if (not sources):
  raise DataError('One or more data source needed.')
 if options.pop('merge', False):
  return _merge_results(sources[0], sources[1:], options)
 if (len(sources) > 1):
  return _combine_results(sources, options)
 return _single_result(sources[0], options)

def ExecutionResult ( * sources , ** options ) : if ( not sources ) : raise DataError ( 'One or more data source needed.' ) if options . pop ( 'merge' , False ) : return _merge_results ( sources [ 0 ] , sources [ 1 : ] , options ) if ( len ( sources ) > 1 ) : return _combine_results ( sources , options ) return _single_result ( sources [ 0 ] , options )
factory method to constructs :class:~ .