#NEWLINE# def reset_queues( self , number_of_queues ) : #NEWLINE# #INDENT# self . _weights = [ ( 1 / ( float ( i ) * number_of_queues ) ) for i in range ( 1 , ( number_of_queues + 1 ) ) ] #NEWLINE# self . _sum_weights = sum ( w . _weights ) #NEWLINE# self . _enumerate_weights = [ ( i , w ) for ( i , w ) in enumerate ( self . _weights ) ]