inspect.trace() broke?
Chris Liechti
cliechti at gmx.net
Sat May 25 09:48:20 EDT 2002
Phlip <phlip_cpp at yahoo.com> wrote in
news:acn5bj$6p at dispatch.concentric.net:
> Here's the line:
> f, file, lineno, fn_name, lines, n = inspect.trace()[-1]
> Here's the croak:
> AttributeError: 'module' object has no attribute 'exc_traceback'
a traceback is only available after an exception was thrown:
>>> try:
... raise "hello"
... except:
... f, file, lineno, fn_name, lines, n = inspect.trace()[-1]
... print f, file, lineno, fn_name, lines, n
...
<frame object at 0x00E508C8> None 4 ? None None
(Py 2.2 win32)
chris
--
Chris <cliechti at gmx.net>
More information about the Python-list
mailing list