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) 


--
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