Module Import alias FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpOr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr CompareIs NameLoad NameLoad CompareIs Call NameLoad NameLoad NameLoad body Return ListLoad Call NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad NameLoad NameLoad body Return ListLoad Call NameLoad NameLoad NameLoad Assign NameStore ListLoad TryExcept body Assign TupleStore NameStore TupleStore NameStore NameStore NameStore NameStore AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass orelse Assign NameStore BoolOpOr NameLoad Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Slice NameLoad attr Assign NameStore GeneratorExp BoolOpOr BoolOpAnd Call AttributeLoad NameLoad attr NameLoad Str comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad Str attr NameLoad Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If BoolOpOr CompareIs NameLoad NameLoad UnaryOpNot NameLoad body Assign NameStore BinOpMod Str NameLoad orelse Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Return Call NameLoad NameLoad handlers ExceptHandler type NameLoad body TryExcept body Return Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass Return BinOpMod Str AttributeLoad Call NameLoad NameLoad attr decorator_list
N/A N/A types format_exception_only N/A N/A etype value N/A N/A N/A Format the exception part of a traceback.

    The arguments are the exception type and value such as given by
    sys.last_type and sys.last_value. The return value is a list of
    strings, each ending in a newline.

    Normally, the list contains a single string; however, for
    SyntaxError exceptions, it contains several lines that (when
    printed) display detailed information about where the syntax
    error occurred.

    The message indicating which exception occurred is always the last
    string in the list.

     N/A N/A N/A isinstance etype BaseException N/A isinstance etype N/A types InstanceType N/A etype None N/A N/A type etype str N/A N/A N/A N/A _format_final_exc_line etype value N/A stype N/A etype __name__ N/A N/A N/A issubclass etype SyntaxError N/A N/A N/A N/A _format_final_exc_line stype value N/A lines N/A N/A N/A N/A N/A msg N/A filename lineno offset badline N/A value args N/A N/A N/A Exception N/A N/A N/A N/A filename N/A filename <string> N/A N/A N/A lines append N/A   File "%s", line %d
 N/A filename lineno N/A N/A badline None N/A N/A N/A N/A lines append N/A     %s
 N/A N/A badline strip N/A N/A offset None N/A N/A caretspace N/A N/A N/A N/A N/A badline rstrip N/A offset lstrip N/A caretspace N/A N/A N/A N/A N/A c isspace c N/A c caretspace N/A N/A N/A lines append N/A    %s^
 N/A N/A join caretspace N/A value msg N/A N/A N/A lines append N/A _format_final_exc_line stype value N/A lines N/A _format_final_exc_line N/A N/A etype value N/A N/A N/A Return a list of a single line -- normal case for format_exception_only N/A valuestr N/A _some_str value N/A N/A N/A value None N/A valuestr N/A N/A line N/A %s
 etype N/A N/A line N/A %s: %s
 N/A etype valuestr N/A line N/A _some_str N/A N/A value N/A N/A N/A N/A N/A N/A unicode value N/A N/A N/A Exception N/A N/A N/A N/A N/A str value N/A N/A N/A Exception N/A N/A N/A N/A <unprintable %s object> N/A N/A type value __name__ N/A