Lichen

tests/attr_base_usage_good.py

1039:16990afa2754
5 months ago Paul Boddie Eliminated redundant temporary result and attribute reference storage. value-replacement
     1 class C:     2     def __init__(self):     3         self.x = 1     4     def f(self):     5         return self.x     6      7 class D(C):     8     pass     9     10 class E(C):    11     def __init__(self, x):    12         self.x = x    13     14 d = D()    15 print d.f()    16     17 e = E(2)    18 print e.f()