def format_tb(tb, limit=None):
 return format_list(extract_tb(tb, limit))

def format_tb ( tb , limit = None ) : return format_list ( extract_tb ( tb , limit ) )
a shorthand for format_list(extract_stack) .