def get_func_list(stats, sel_list):
 if stats.fcn_list:
  list = stats.fcn_list[:]
  order_message = ('Ordered by: ' + stats.sort_type)
 else:
  list = stats.stats.keys()
  order_message = 'Random listing order was used'
 select_message = ''
 for selection in sel_list:
  (list, select_message) = stats.eval_print_amount(selection, list, select_message)
 return (list, order_message, select_message)

def get_func_list ( stats , sel_list ) : if stats . fcn_list : list = stats . fcn_list [ : ] order_message = ( 'Ordered by: ' + stats . sort_type ) else : list = stats . stats . keys ( ) order_message = 'Random listing order was used' select_message = '' for selection in sel_list : ( list , select_message ) = stats . eval_print_amount ( selection , list , select_message ) return ( list , order_message , select_message )
use sel_list to select a list of functions to display .