1.1 --- a/micropython/opt.py Sat Feb 26 01:12:25 2011 +0100
1.2 +++ b/micropython/opt.py Sun Feb 27 02:45:38 2011 +0100
1.3 @@ -307,7 +307,7 @@
1.4
1.5 """
1.6 Where the object whose attribute is being accessed is constant, provide
1.7 - information about its full name.
1.8 + information about the object and its full name.
1.9 """
1.10
1.11 if self.should_optimise_constant_accessor() and self.have_constant_input():
1.12 @@ -323,11 +323,11 @@
1.13 if target is None:
1.14 return None # no clearly defined target
1.15 elif isinstance(target, Const):
1.16 - return target.value_type_name()
1.17 + return target, target.value_type_name()
1.18 elif isinstance(target, Instance):
1.19 return None # skip production of optimised code
1.20 else:
1.21 - return target.full_name()
1.22 + return target, target.full_name()
1.23
1.24 else:
1.25 return None