2016-09-25 | Paul Boddie | raw annotate files changeset graph | Attempt to define attribute access plans. |
1 class C: 2 class D: 3 class E: 4 def m(self, x): 5 self.x = x 6 return self.x.__len__ 7 n = 123 8 p = "456" 9 10 def main(): 11 c = C 12 d = C.D 13 e = C.D.E 14 f = C.D.E.m 15 g = C.D.E.n 16 h = C.D.p 17 i = C.D.p.__len__ 18 inst = e() 19 method = inst.m 20 return method("5") 21 22 result1 = main() 23 c = C 24 d = C.D 25 e = C.D.E 26 f = C.D.E.m 27 g = C.D.E.n 28 h = C.D.p 29 i = C.D.p.__len__ 30 inst = e() 31 method = inst.m 32 result2 = method("5")