def get_current_traceback(ignore_system_exceptions=False, show_hidden_frames=False, skip=0):
 (exc_type, exc_value, tb) = sys.exc_info()
 if (ignore_system_exceptions and (exc_type in system_exceptions)):
  raise
 for x in range_type(skip):
  if (tb.tb_next is None):
   break
  tb = tb.tb_next
 tb = Traceback(exc_type, exc_value, tb)
 if (not show_hidden_frames):
  tb.filter_hidden_frames()
 return tb

def get_current_traceback ( ignore_system_exceptions = False , show_hidden_frames = False , skip = 0 ) : ( exc_type , exc_value , tb ) = sys . exc_info ( ) if ( ignore_system_exceptions and ( exc_type in system_exceptions ) ) : raise for x in range_type ( skip ) : if ( tb . tb_next is None ) : break tb = tb . tb_next tb = Traceback ( exc_type , exc_value , tb ) if ( not show_hidden_frames ) : tb . filter_hidden_frames ( ) return tb
get the current exception info as traceback object .