2006-10-23 | paulb | raw files shortlog changelog graph | Made the example believable. | |
tests/for.py (file) |
1.1 --- a/tests/for.py Mon Oct 23 23:59:23 2006 +0200 1.2 +++ b/tests/for.py Mon Oct 23 23:59:44 2006 +0200 1.3 @@ -1,7 +1,9 @@ 1.4 -for a, b in range(c, d): 1.5 - for i in range(a, b): 1.6 +l = [(0, 10), (10, 20)] 1.7 +y = 23 1.8 +for a, b in l: 1.9 + for i in a, b: 1.10 x = i 1.11 - else: 1.12 + else: # NOTE: Need to support StopIteration! 1.13 x = y 1.14 else: 1.15 a = b