micropython

tests/call_method3.py

203:7165b3c8dca8
2009-04-26 Paul Boddie Fixed basestring.__radd__ duplication. Fixed the StoreTemp RSVP instruction (which uses the current value). Removed various unnecessary default objects. Removed code generation of instantiators for built-in classes. Removed direct calling of __init__ methods where class invocation is detected. Introduced a size member to object headers which may be overridden by the MakeObject instruction. Added RSVP support for the list instantiator. Added empty and minimal test programs.
     1 #!/usr/bin/env python     2      3 class C:     4     def f(self, a, b, c):     5         pass     6      7 c = C()     8      9 f = C.f    10 f(c, 1, 2, 3) # test self argument    11     12 # vim: tabstop=4 expandtab shiftwidth=4