2011-12-10 | Paul Boddie | raw files shortlog changelog graph | Removed array module usage since Shedskin's generated code still wants to be able to convert arrays to elementary Python types. | |
ula.py (file) |
1.1 --- a/ula.py Sat Dec 10 20:58:56 2011 +0100 1.2 +++ b/ula.py Sat Dec 10 21:14:53 2011 +0100 1.3 @@ -4,7 +4,6 @@ 1.4 Acorn Electron ULA simulation. 1.5 """ 1.6 1.7 -import array 1.8 import itertools 1.9 1.10 WIDTH = 640 1.11 @@ -285,7 +284,7 @@ 1.12 1.13 "Return an array representing the computer's memory." 1.14 1.15 - return array.array("B", itertools.repeat(0, MAX_MEMORY)) 1.16 + return list(itertools.repeat(0, MAX_MEMORY)) 1.17 1.18 def get_screen(): 1.19