2009-04-23 | Paul Boddie | file changeset files shortlog | Added missing built-in methods. Added inspection of "if" test expressions. Removed StoreName from the constant storage optimisation (until population of locals/frames is implemented). Added debugging attributes to RSVPMachine for the object and parameter lists. Fixed the StoreName instruction to use the source, not the value. Added common names in use. |
paul@104 | 1 | #!/usr/bin/env python |
paul@104 | 2 | |
paul@104 | 3 | class C: |
paul@104 | 4 | clsattr = 123 |
paul@104 | 5 | |
paul@104 | 6 | def __init__(self, value): |
paul@104 | 7 | self.instattr = value |
paul@104 | 8 | self.clsattr |
paul@104 | 9 | |
paul@104 | 10 | def update(self, value): |
paul@104 | 11 | self.attr = value |
paul@104 | 12 | self.clsattr = value |
paul@104 | 13 | C.clsattr = value |
paul@104 | 14 | |
paul@104 | 15 | C |
paul@104 | 16 | C.clsattr |
paul@104 | 17 | |
paul@104 | 18 | # vim: tabstop=4 expandtab shiftwidth=4 |