1.1 --- a/micropython/program.py Sun Mar 11 01:49:53 2012 +0100
1.2 +++ b/micropython/program.py Mon Mar 26 23:24:38 2012 +0200
1.3 @@ -23,13 +23,14 @@
1.4
1.5 "A code block."
1.6
1.7 - def __init__(self):
1.8 + def __init__(self, unit):
1.9 + self.unit = unit
1.10 self.code = []
1.11 self.location = None
1.12 self.active_values = set()
1.13
1.14 def __repr__(self):
1.15 - return "Block(%r, location=%r)" % (id(self), self.location)
1.16 + return "Block(%r, id=%r, location=%r)" % (self.unit, id(self), self.location)
1.17
1.18 def set_active_values(self, values):
1.19 self.active_values = values