We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c33ce60 commit 5fba93aCopy full SHA for 5fba93a
1 file changed
tests/basics/for3.py
@@ -0,0 +1,11 @@
1
+# test assigning to iterator within the loop
2
+for i in range(2):
3
+ print(i)
4
+ i = 2
5
+
6
+# test assigning to range parameter within the loop
7
+# (since we optimise for loops, this needs checking, currently it fails)
8
+#n = 2
9
+#for i in range(n):
10
+# print(i)
11
+# n = 0
0 commit comments