[Python-Dev] where did the rest of my traceback go?
Trent Mick
trentm@activestate.com
Wed, 5 Jul 2000 11:12:20 -0700
Pardon me if this is a stupid question:
Python 2.0b1 (#0, Jul 4 2000, 16:47:31) [MSC 32 bit (Intel)] on win32
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
Copyright 1995-2000 Corporation for National Research Initiatives (CNRI)
>>> compile('foo=', 'foo.py', 'exec')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "<string>", line 1
foo=
^
SyntaxError: unexpected EOF while parsing
>>> import sys, traceback
>>> tb = sys.last_traceback
>>> traceback.print_tb(tb)
File "<stdin>", line 1, in ?
>>> traceback.print_stack()
File "<stdin>", line 1, in ?
>>>
Where did the rest of the stack trace go (i.e. the File "<string>" block)?
Insights appreciated,
Trent
--
Trent Mick
trentm@activestate.com