Message118534
Not sure if this is on purpose but I've lost quite some time to debug this problem.
--- code ---
def foo():
bar = 1
import pdb; pdb.set_trace()
foo()
--- pdb session ---
(Pdb) dir()
['__return__', 'bar', 'pdb']
(Pdb) bar
1
(Pdb) bar = 2
(Pdb) bar
1
(Pdb)
If this is on purpose (pdb just CAN'T do it) then I would expect it to display an error of some kind when I enter "bar = 2", say: "*** NameError: 'foo' is a reserved name". |
|
Date |
User |
Action |
Args |
2010-10-13 16:01:24 | giampaolo.rodola | set | recipients:
+ giampaolo.rodola |
2010-10-13 16:01:24 | giampaolo.rodola | set | messageid: <1286985684.86.0.916625287507.issue10088@psf.upfronthosting.co.za> |
2010-10-13 16:01:22 | giampaolo.rodola | link | issue10088 messages |
2010-10-13 16:01:22 | giampaolo.rodola | create | |
|