micropython

tests/attributes_class_bind_function_inherited.py

523:43f315a8e0f0
2012-06-05 Paul Boddie Added warning annotations where no attribute access targets are found from usage observations.
     1 #!/usr/bin/env python     2      3 def f(self, x):     4     return x     5      6 class C:     7     e = f     8      9 class E(C):    10     # e = C.e (via inheritance)    11     pass    12     13 e = E()    14 r = e.e # bound E.e    15 result_321 = r(321)    16     17 # vim: tabstop=4 expandtab shiftwidth=4