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@450 | 1 | #!/usr/bin/env python |
paul@450 | 2 | |
paul@450 | 3 | class A: |
paul@450 | 4 | pass |
paul@450 | 5 | |
paul@450 | 6 | a = A() |
paul@450 | 7 | result_1 = a.__class__ is not type and 1 or 0 |
paul@450 | 8 | |
paul@450 | 9 | # vim: tabstop=4 expandtab shiftwidth=4 |