Андрей Бодров added the comment:

I still can reproduce this bug, is that intended behavior?
  1     def func():
  2       import pdb; pdb.set_trace()
  3       x = 0
  4       y = 0
  5       z = 0
  6     
  7     if __name__ == "__main__":
  8       func()

> /test.py(3)func()
-> x = 0
(Pdb) n
> /test.py(4)func()
-> y = 0
(Pdb) x = 5
(Pdb) y = 3
(Pdb) j 5
> /test.py(5)func()
-> z = 0
(Pdb) x
0
(Pdb) y
*** NameError: name 'y' is not defined

----------
nosy: +Андрей Бодров
versions: +Python 2.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5215>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to