pdb in python2.5
vmalloc at gmail.com
Thu Jan 25 10:31:26 CET 2007
Maybe I'm repeating a previous post (please correct me if I am).
I've tried the following code in python 2.5 (r25:51908, Oct 6 2006,
from __future__ import with_statement
l = threading.Lock()
This fails because pdb.pm() attempts to access sys.last_traceback which
is not assigned.
Yields the following:
-> print "world"
the 'w' command yields a similar output, which implies that the
exception was thrown from the wrong line.
the traceback module is better, yielding correct results (displays line
8 instead of 9).
Has anyone encountered this behavior? is pdb broken?
I get similar results for larger/more complex pieces of code.
Thanks in advance,
More information about the Python-list