2009-04-23 | Paul Boddie | raw annotate files changeset graph | 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. |
1 #!/usr/bin/env python 2 3 class C: 4 def __init__(self, x): 5 pass 6 7 def f(self, a, b, c): 8 self.g(a) 9 m = self.g 10 m(b) 11 12 def g(self, x): 13 C.h(self, x) 14 15 def h(self, p): 16 pass 17 18 c = C(123) 19 c.f(1, 2, 3) 20 21 f = c.f 22 f(1, 2, 3) 23 24 # vim: tabstop=4 expandtab shiftwidth=4