def iter_traceback_frames(tb):
 while (tb and hasattr(tb, 'tb_frame')):
  f_locals = getattr(tb.tb_frame, 'f_locals', {})
  if (not _getitem_from_frame(f_locals, '__traceback_hide__')):
   (yield (tb.tb_frame, getattr(tb, 'tb_lineno', None)))
  tb = tb.tb_next

def iter_traceback_frames ( tb ) : while ( tb and hasattr ( tb , 'tb_frame' ) ) : f_locals = getattr ( tb . tb_frame , 'f_locals' , { } ) if ( not _getitem_from_frame ( f_locals , '__traceback_hide__' ) ) : ( yield ( tb . tb_frame , getattr ( tb , 'tb_lineno' , None ) ) ) tb = tb . tb_next
given a traceback object .