'initialize from given python traceback object.'

def __init__(self, tb):

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