2008-03-22 | Paul Boddie | file changeset files shortlog | Introduced caching of object and parameter tables. Added parameter table entries for classes, referring to the appropriate __init__ method which should be called when a class is invoked. Added missing __init__ methods to list and listiterator. |
paul@59 | 1 | #!/usr/bin/env python |
paul@59 | 2 | |
paul@59 | 3 | class C: |
paul@59 | 4 | def f(self, a, b, c): |
paul@59 | 5 | pass |
paul@59 | 6 | |
paul@59 | 7 | c = C() |
paul@59 | 8 | c.f(1, 2, 3) |
paul@59 | 9 | |
paul@59 | 10 | f = c.f |
paul@59 | 11 | f(1, 2, 3) |
paul@59 | 12 | |
paul@59 | 13 | # vim: tabstop=4 expandtab shiftwidth=4 |