2008-03-21 | Paul Boddie | file changeset files shortlog | Attempted to improve argument handling and to test argument list compatibility with function parameter lists where possible. Added __init__ methods to built-in classes and made all classes at least inherit from object. |
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 |