2016-08-11 05:59:31 |
afg984 |
description |
this code gives: undefined name 'j'
for i in range(10):
if i % 3 == 0:
j += i
else:
j = 0
print(j)
while the following emits nothing
for i in range(10):
if not i % 3 == 0:
j = 0
else:
j += i
print(j)
I'm creating a new report besides #1431099 and #1308508 because this is not related to the del statement |
this code gives: undefined name 'j'
for i in range(10):
if i % 3 == 0:
j += i
else:
j = 0
print(j)
while the following emits nothing
for i in range(10):
if not i % 3 == 0:
j = 0
else:
j += i
print(j)
pyflakes --version
1.2.3
I'm creating a new report besides #1431099 and #1308508 because this is not related to the del statement |
|