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 Mahdi Jafary
Recipients Mahdi Jafary, paul.moore, steve.dower, tim.golden, zach.ware
Date 2019-06-11.15:26:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1560266786.16.0.932165098203.issue37234@roundup.psfhosted.org>
In-reply-to
Content
this code is ok
def test(t):
	n = 0
	def f(t):
		print(t+str(N))
	f(t)	
test('test')
but this code have error

def test(t):
	n = 0
	def f(t):
		n = n+1
		print(t+str(n))
	f(t)	
test('test')	

we can fix this by edit code to:

def test(t):
	n = 0
	def f(t):
		N = n+1
		print(t+str(N))
	f(t)	
test('test')
History
Date User Action Args
2019-06-11 15:26:26Mahdi Jafarysetrecipients: + Mahdi Jafary, paul.moore, tim.golden, zach.ware, steve.dower
2019-06-11 15:26:26Mahdi Jafarysetmessageid: <1560266786.16.0.932165098203.issue37234@roundup.psfhosted.org>
2019-06-11 15:26:26Mahdi Jafarylinkissue37234 messages
2019-06-11 15:26:26Mahdi Jafarycreate