1.1 --- a/optimiser.py Thu Nov 24 23:42:19 2016 +0100
1.2 +++ b/optimiser.py Fri Nov 25 00:53:22 2016 +0100
1.3 @@ -57,6 +57,7 @@
1.4 # Specific attribute access information.
1.5
1.6 self.access_instructions = {}
1.7 + self.accessor_kinds = {}
1.8
1.9 # Object structure information.
1.10
1.11 @@ -343,8 +344,11 @@
1.12
1.13 # Obtain the access details.
1.14
1.15 - name, test, test_type, base, traversed, traversal_modes, \
1.16 - attrnames, context, context_test, first_method, final_method, origin = access_plan
1.17 + name, test, test_type, base, \
1.18 + traversed, traversal_modes, attrnames, \
1.19 + context, context_test, \
1.20 + first_method, final_method, \
1.21 + origin, accessor_kinds = access_plan
1.22
1.23 instructions = []
1.24 emit = instructions.append
1.25 @@ -539,6 +543,7 @@
1.26 emit(accessor)
1.27
1.28 self.access_instructions[access_location] = instructions
1.29 + self.accessor_kinds[access_location] = accessor_kinds
1.30
1.31 def get_ambiguity_for_attributes(self, attrnames):
1.32