micropython

tests/call_method_ref_internal.py

222:d63a8400ce56
2009-05-24 Paul Boddie Moved logic from CheckFrame into separate CheckContext, CheckClassContext instructions used in a sequence of generated instructions. Fixed usage of the exception register in the RSVP machine.
     1 #!/usr/bin/env python     2      3 class C:     4     def f(self, a, b, c):     5         m = self.g     6         m(a, b, c)     7      8     def g(self, a, b, c):     9         self.a = a    10         self.b = b    11         self.c = c    12     13 c = C()    14 c.f(1, 2, 3)    15     16 # vim: tabstop=4 expandtab shiftwidth=4