2012-02-26 | Paul Boddie | file changeset files shortlog | Generalised the active value mechanism to support different registers. |
paul@404 | 1 | #!/usr/bin/env python |
paul@404 | 2 | |
paul@404 | 3 | class C: |
paul@404 | 4 | clsattr = 123 |
paul@404 | 5 | clsattr2 = 456 |
paul@404 | 6 | |
paul@404 | 7 | x = C |
paul@404 | 8 | x.clsattr = 789 |
paul@404 | 9 | x.clsattr2 = 234 |
paul@404 | 10 | |
paul@404 | 11 | result_789 = C.clsattr |
paul@404 | 12 | result_234 = C.clsattr2 |
paul@404 | 13 | |
paul@404 | 14 | # vim: tabstop=4 expandtab shiftwidth=4 |