parameters: (etype, value, tb, limit=None, chain=True)
return_statement: return list(TracebackException(
          type(value), value, tb, limit=limit).format(chain=chain))
docstring: Format a stack trace and the exception information.
  
      The arguments have the same meaning as the corresponding arguments
      to print_exception().  The return value is a list of strings, each
      ending in a newline and some containing internal newlines.  When
      these lines are concatenated and printed, exactly the same text is
      printed as does print_exception().
docstring_summary: Format a stack trace and the exception information.
docstring_tokens: Format a stack trace and the exception information .
function: def format_exception(etype, value, tb, limit=None, chain=True):
      """Format a stack trace and the exception information.
  
      The arguments have the same meaning as the corresponding arguments
      to print_exception().  The return value is a list of strings, each
      ending in a newline and some containing internal newlines.  When
      these lines are concatenated and printed, exactly the same text is
      printed as does print_exception().
      """
      # format_exception has ignored etype for some time, and code such as cgitb
      # passes in bogus values as a result. For compatibility with such code we
      # ignore it here (rather than in the new TracebackException API).
      return list(TracebackException(
          type(value), value, tb, limit=limit).format(chain=chain))
function_tokens: def format_exception ( etype , value , tb , limit = None , chain = True ) : # format_exception has ignored etype for some time, and code such as cgitb # passes in bogus values as a result. For compatibility with such code we # ignore it here (rather than in the new TracebackException API). return list ( TracebackException ( type ( value ) , value , tb , limit = limit ) . format ( chain = chain ) )