parameters: (limit=None)
docstring: Like print_exc() but return a string.
docstring_summary: Like print_exc() but return a string.
docstring_tokens: Like print_exc () but return a string .
function: def format_exc(limit=None):
      """Like print_exc() but return a string."""
      try:
          etype, value, tb = sys.exc_info()
          return ''.join(format_exception(etype, value, tb, limit))
      finally:
          etype = value = tb = None
function_tokens: def format_exc ( limit = None ) : try : etype , value , tb = sys . exc_info ( ) return '' . join ( format_exception ( etype , value , tb , limit ) ) finally : etype = value = tb = None