2009-06-07 | Paul Boddie | file changeset files shortlog | Fixed RSVP implementations of attribute access instructions, handling empty object table entries correctly and raising attribute errors under appropriate circumstances. Fixed the test for context overriding to handle the different context type values appropriately. |
paul@223 | 1 | #!/usr/bin/env python |
paul@223 | 2 | |
paul@223 | 3 | class C: |
paul@223 | 4 | clsattr = 123 |
paul@223 | 5 | clsattr2 = clsattr |
paul@223 | 6 | |
paul@223 | 7 | x = 0 # prevent optimisation of assignments |
paul@223 | 8 | x = C # prevent optimisation of assignments |
paul@228 | 9 | result_123 = x.clsattr |
paul@228 | 10 | result2_123 = x.clsattr2 |
paul@223 | 11 | |
paul@223 | 12 | # vim: tabstop=4 expandtab shiftwidth=4 |