def get_summaries(ordered=True):
 if ordered:
  cmditems = _sort_commands(commands_dict, commands_order)
 else:
  cmditems = commands_dict.items()
 for (name, command_class) in cmditems:
  (yield (name, command_class.summary))

def get_summaries ( ordered = True ) : if ordered : cmditems = _sort_commands ( commands_dict , commands_order ) else : cmditems = commands_dict . items ( ) for ( name , command_class ) in cmditems : ( yield ( name , command_class . summary ) )
yields sorted tuples .