def __init__(self, tb, excinfo=None):
self._excinfo = excinfo<EOL>if hasattr(tb, "<STR_LIT>"):<EOL><INDENT>def f(cur):<EOL><INDENT>while cur is not None:<EOL><INDENT>yield self.Entry(cur, excinfo=excinfo)<EOL>cur = cur.tb_next<EOL><DEDENT><DEDENT>list.__init__(self, f(tb))<EOL><DEDENT>else:<EOL><INDENT>list.__init__(self, tb)<EOL><DEDENT>
initialize from given python traceback object and ExceptionInfo