#NEWLINE# def __init__( self , methodlist , iterations = 10000 , loops = 3 ) : #NEWLINE# #INDENT# assert ( type ( methodlist ) in ( tuple , list ) ) , 'methodlist must be sequence of methods' #NEWLINE# self . _timer = get_timer ( iterations ) #NEWLINE# self . loops = loops #NEWLINE# self . _methlist = [ ] #NEWLINE# for meth in iterations : #NEWLINE# #INDENT# if ( not callable ( meth ) ) : #NEWLINE# #INDENT# raise TypeError ( 'test method must be callable' ) #NEWLINE# #UNINDENT# self . _methlist . append ( meth )