This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author giampaolo.rodola
Recipients giampaolo.rodola
Date 2010-10-13.16:01:22
SpamBayes Score 0.0002689029
Marked as misclassified No
Message-id <1286985684.86.0.916625287507.issue10088@psf.upfronthosting.co.za>
In-reply-to
Content
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".
History
Date User Action Args
2010-10-13 16:01:24giampaolo.rodolasetrecipients: + giampaolo.rodola
2010-10-13 16:01:24giampaolo.rodolasetmessageid: <1286985684.86.0.916625287507.issue10088@psf.upfronthosting.co.za>
2010-10-13 16:01:22giampaolo.rodolalinkissue10088 messages
2010-10-13 16:01:22giampaolo.rodolacreate