micropython

tests/call_method2.py

207:79f8d72c8c78
2009-05-01 Paul Boddie Removed the instance attribute from DataObject (the common data structure), employing the presence of a value on the attrcode attribute to indicate the instance status of objects.
     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(1, 2, 3)    11     12 f = C.f    13 f(c, 1, 2, 3)    14     15 # vim: tabstop=4 expandtab shiftwidth=4