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