2013-05-01 | Paul Boddie | file changeset files shortlog | Permit repeated evaluation of __builtins__.getattr and a final evaluation of the function with more complete knowledge of a program's constants. | syspython-as-target |
paul@551 | 1 | #!/usr/bin/env python |
paul@551 | 2 | |
paul@551 | 3 | class C: |
paul@551 | 4 | def f(self): |
paul@551 | 5 | return 1 |
paul@551 | 6 | m = f |
paul@551 | 7 | |
paul@551 | 8 | def g(self): |
paul@551 | 9 | return 2 |
paul@551 | 10 | n = g |
paul@551 | 11 | |
paul@551 | 12 | c = C() |
paul@551 | 13 | result_1 = c.m() |
paul@551 | 14 | |
paul@551 | 15 | # vim: tabstop=4 expandtab shiftwidth=4 |