parameters: (self)
docstring: Display the exception that just occurred.
  
          We remove the first stack item because it is our own code.
  
          The output is written by self.write(), below.
docstring_summary: Display the exception that just occurred.
docstring_tokens: Display the exception that just occurred .
function: def showtraceback(self):
          """Display the exception that just occurred.
  
          We remove the first stack item because it is our own code.
  
          The output is written by self.write(), below.
  
          """
          try:
              type, value, tb = sys.exc_info()
              sys.last_type = type
              sys.last_value = value
              sys.last_traceback = tb
              tblist = traceback.extract_tb(tb)
              del tblist[:1]
              list = traceback.format_list(tblist)
              if list:
                  list.insert(0, "Traceback (most recent call last):\n")
              list[len(list):] = traceback.format_exception_only(type, value)
          finally:
              tblist = tb = None
          map(self.write, list)
function_tokens: def showtraceback ( self ) : try : type , value , tb = sys . exc_info ( ) sys . last_type = type sys . last_value = value sys . last_traceback = tb tblist = traceback . extract_tb ( tb ) del tblist [ : 1 ] list = traceback . format_list ( tblist ) if list : list . insert ( 0 , "Traceback (most recent call last):\n" ) list [ len ( list ) : ] = traceback . format_exception_only ( type , value ) finally : tblist = tb = None map ( self . write , list )