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@646 | 1 | #!/usr/bin/env python |
paul@646 | 2 | |
paul@646 | 3 | class C: |
paul@646 | 4 | x = 1 |
paul@646 | 5 | |
paul@646 | 6 | class D(C): |
paul@646 | 7 | pass |
paul@646 | 8 | |
paul@646 | 9 | result1_1 = C.x |
paul@646 | 10 | result2_1 = D.x |
paul@646 | 11 | |
paul@646 | 12 | # vim: tabstop=4 expandtab shiftwidth=4 |