micropython

tests/call_method.py

78:a550b84e0ea5
2008-05-04 Paul Boddie Made the temporary storage allocation and deallocation more adaptive so that entries are only reserved when actually required and discarded when actually used. Introduced temporary storage usage for invocation targets instead of having a LoadCallable instruction.
     1 #!/usr/bin/env python     2      3 class C:     4     def f(self, a, b, c):     5         pass     6      7 c = C()     8 c.f(1, 2, 3)     9     10 f = c.f    11 f(1, 2, 3)    12     13 # vim: tabstop=4 expandtab shiftwidth=4