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 Andrei Bodrov
Recipients Andrei Bodrov, Markus.Pröller, amaury.forgeotdarc, benjamin.peterson, georg.brandl, maru, mproeller
Date 2016-12-29.16:03:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1483027409.78.0.650617977055.issue5215@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2016-12-29 16:03:29Andrei Bodrovsetrecipients: + Andrei Bodrov, georg.brandl, amaury.forgeotdarc, benjamin.peterson, mproeller, maru, Markus.Pröller
2016-12-29 16:03:29Andrei Bodrovsetmessageid: <1483027409.78.0.650617977055.issue5215@psf.upfronthosting.co.za>
2016-12-29 16:03:29Andrei Bodrovlinkissue5215 messages
2016-12-29 16:03:29Andrei Bodrovcreate