micropython

tests/call_method_ref.py

223:09ae448806d1
2009-05-24 Paul Boddie Added a StoreAddressContext instruction for class attribute initialisation. Fixed the mechanism behind LoadAttrIndexContextCond and LoadAddressContextCond since it failed to provide the appropriate instance context for instance accesses. Added a LoadFunction instruction in order to distinguish between constants which have no context information and those which do.
     1 #!/usr/bin/env python     2      3 class C:     4     def f(self, a, b, c):     5         self.a = a     6         self.b = b     7         self.c = c     8      9 c = C()    10     11 f = c.f    12 f(1, 2, 3)    13     14 # vim: tabstop=4 expandtab shiftwidth=4