Possible bug in Python 2.5? (Was Re: pdb in python2.5)

R. Bernstein rocky at panix.com
Thu Jan 25 19:09:35 EST 2007


"Rotem" <vmalloc at gmail.com> writes:

> Hi,
> 
> I noticed that pydb.pm() also fails in python2.5 when invoked on that
> same example (seems like also trying to access a nonexistent
> attribute/variable).
> 
> Is this known to you as well/was it fixed?

Doesn't do that for me for Python 2.5 on both pydb 1.20 (last released
version) and the current CVS. See below. If you think the problem is
not on your end and want to file a bug report, please do. But note

  * comp.lang.python is not the place to file bug reports
  * more detail is needed that what's been given so far

$ cat /tmp/t1.py
from __future__ import with_statement
import threading

def f():
    l = threading.Lock()
    with l:
        print "hello"
        raise Exception("error")
        print "world"

try:
    f()
except:
   import pydb
   pydb.pm()
$ python /tmp/t1.py
hello
(/tmp/t1.py:9):  f
(Pydb) where
-> 0 f() called from file '/tmp/t1.py' at line 9
## 1 <module>() called from file '/tmp/t1.py' at line 15
(Pydb) show version
pydb version 1.20.
(Pydb) quit
$ python /tmp/t1.py 
hello
(/tmp/t1.py:15):  <module>
(Pydb) where
## 0 f() called from file '/tmp/t1.py' at line 8
-> 1 <module>() called from file '/tmp/t1.py' at line 15
(Pydb) show version
pydb version 1.21cvs.
(Pydb) quit
$ 





More information about the Python-list mailing list