2016-09-22 | Paul Boddie | raw annotate files changeset graph | Added another test of chained attributes. |
1 class C: 2 class D: 3 class E: 4 def m(self, x): 5 return x 6 7 def main(): 8 c = C 9 d = C.D 10 e = C.D.E 11 f = C.D.E.m 12 inst = e() 13 method = inst.m 14 return method(5) 15 16 result1 = main() 17 c = C 18 d = C.D 19 e = C.D.E 20 f = C.D.E.m 21 inst = e() 22 method = inst.m 23 result2 = method(5)