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@187 | 1 | #!/usr/bin/env python |
paul@187 | 2 | |
paul@187 | 3 | class B: |
paul@187 | 4 | pass |
paul@187 | 5 | |
paul@187 | 6 | class A: |
paul@187 | 7 | c0 = B |
paul@187 | 8 | def __init__(self): |
paul@187 | 9 | self.c2 = B |
paul@187 | 10 | |
paul@187 | 11 | a = A() |
paul@187 | 12 | |
paul@187 | 13 | # context on A attribute context on a attribute |
paul@187 | 14 | A.c0 # none none |
paul@187 | 15 | a.c2 # N/A none |
paul@187 | 16 | |
paul@187 | 17 | # vim: tabstop=4 expandtab shiftwidth=4 |