On Tue, Apr 12, 2011 at 1:22 PM, Guido van Rossum
<guido@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)