2014-05-01 | Paul Boddie | file changeset files shortlog | Populated Const instances with references to their values' classes. | syspython-as-target |
paul@792 | 1 | #!/usr/bin/env python |
paul@792 | 2 | |
paul@792 | 3 | c = 123 |
paul@792 | 4 | |
paul@792 | 5 | class A: |
paul@792 | 6 | def b(self): |
paul@792 | 7 | return c |
paul@792 | 8 | c = 456 |
paul@792 | 9 | |
paul@792 | 10 | a = A() |
paul@792 | 11 | result_123 = a.b() |
paul@792 | 12 | |
paul@792 | 13 | # vim: tabstop=4 expandtab shiftwidth=4 |