2009-05-09 | Paul Boddie | file changeset files shortlog | Removed erroneous remark about __init__ and __call__ defaults. Added a test of __init__ defaults. Improved and renamed the invocation with non-constant defaults test. |
paul@59 | 1 | #!/usr/bin/env python |
paul@59 | 2 | |
paul@59 | 3 | class C: |
paul@137 | 4 | def __init__(self, x): |
paul@208 | 5 | self.x = x |
paul@59 | 6 | |
paul@137 | 7 | c = C(123) |
paul@59 | 8 | |
paul@59 | 9 | # vim: tabstop=4 expandtab shiftwidth=4 |