inspect.trace() broke?

Phlip phlip_cpp at yahoo.com
Sat May 25 00:53:07 EDT 2002


Hypo Nt:

Here's the line:

        f, file, lineno, fn_name, lines, n = inspect.trace()[-1]

Here's the croak:

Traceback (most recent call last):
  File "test_browser.py", line 244, in test_getDoc
    f, file, lineno, fn_name, lines, n = iz.trace()[-1]
  File "/usr/lib/python2.2/inspect.py", line 769, in trace
    return getinnerframes(sys.exc_traceback, context)
AttributeError: 'module' object has no attribute 'exc_traceback'

The version dumps:

Linux sonse 2.4.3-20mdk #1 Sun Apr 15 23:03:10 CEST 2001 i586 unknown
libpython2.2-2.2-9mdk
pythonlib-1.28-1mdk
python-2.2-9mdk

ls -l sez:
30759 Feb 24 07:23 /usr/lib/python2.2/inspect.py

inspect sez:
__author__ = 'Ka-Ping Yee <ping at lfw.org>'
__date__ = '1 Jan 2001'

I ain't gonna go in after this (the current need for inspect.trace is 
trivial), so I'l just report it here.

Have a good one!

-- 
  Phlip
           http://www.greencheese.org/DontPlanDesigns
  --  Got in trouble at StarBucks. I tried to order
        "A double latte mocha and a body piercing."  --





More information about the Python-list mailing list