2011-12-10 | Paul Boddie | raw files shortlog changelog graph | Removed xrange usage to diagnose Shedskin behaviour. | |
ula.py (file) |
1.1 --- a/ula.py Sat Dec 10 21:14:53 2011 +0100 1.2 +++ b/ula.py Sat Dec 10 21:22:12 2011 +0100 1.3 @@ -303,8 +303,10 @@ 1.4 return screen 1.5 1.6 def fill(memory, start, end, value): 1.7 - for i in xrange(start, end): 1.8 + i = start 1.9 + while i < end: 1.10 memory[i] = value 1.11 + i += 1 1.12 1.13 # Test program providing coverage (necessary for compilers like Shedskin). 1.14 # NOTE: Running this will actually cause an IndexError.