[Python-Dev] Bug? Can't rebind local variables after calling pdb.set_trace()
Djoume Salvetti
dsalvetti at trapeze.com
Tue Apr 12 20:01:46 CEST 2011
On Tue, Apr 12, 2011 at 1:22 PM, Guido van Rossum <guido at python.org> wrote:
>
> Looking at the pastebin you are using !lv = 2. Why the !? Without it,
> it works fine:
>
>
I just wanted to make sure I was executing a python statement and not a pdb
alias.
I re-tested without the exclamation mark and still have the same issue:
-> import pdb; pdb.set_trace()
(Pdb) list
1 gv = 1
2
3 def f():
4 lv = 1
5 -> import pdb; pdb.set_trace()
6
7 if __name__ == '__main__':
8 f()
[EOF]
(Pdb) lv
1
(Pdb) lv = 2
(Pdb) lv
1
(Pdb)
--
Djoume Salvetti
Director of Development
T:416.601.1999 x 249
www.trapeze.com twitter: trapeze
175 Bloor St. E., South Tower, Suite 900
Toronto, ON M4W 3R8
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20110412/d1d6040b/attachment.html>
More information about the Python-Dev
mailing list