Lichen

tests/methods_bound.py

102:7de3090fed03
2016-10-15 Paul Boddie Refined accessor and provider computation in order to provide context testing information. Record access plan cases where any context will be ignored.
     1 class C:     2     def m(self, x):     3         return x     4      5 def f(obj, i):     6     if i:     7         return obj.m(i)     8     else:     9         return obj.m    10     11 c = C()    12 result1 = f(c, 1)    13 fn = f(c, 0)    14 result2 = fn(2)