'initialize from given python traceback object and ExceptionInfo'

def __init__(self, tb, excinfo=None):

    self._excinfo = excinfo
    if hasattr(tb, 'tb_next'):
        def f(cur):
            while (cur is not None):
                (yield self.Entry(cur, excinfo=excinfo))
                cur = cur.tb_next
        list.__init__(self, f(tb))
    else:
        list.__init__(self, tb)
