micropython

tests/class_function_assignment_using_target.py

510:41b26d6cd7ea
2012-05-21 Paul Boddie Expanded the documentation, adding prerequisites, reports and roadmap sections. Updated the copyright information.
     1 #!/usr/bin/env python     2      3 def f(self, x):     4     return 2     5      6 class C:     7     def g(self, x):     8         return 1     9     h = f    10     11 c = C()    12 result_1 = c.g(123)    13 result_2 = c.h(123)    14 #result_2 = f(123, 456)    15     16 # vim: tabstop=4 expandtab shiftwidth=4