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@211 | 1 | #!/usr/bin/env python |
paul@211 | 2 | |
paul@211 | 3 | class C: |
paul@211 | 4 | def __init__(self, x=1, y=2, z=3): |
paul@211 | 5 | self.x = x |
paul@211 | 6 | self.y = y |
paul@211 | 7 | self.z = z |
paul@211 | 8 | |
paul@211 | 9 | c = C() |
paul@211 | 10 | |
paul@211 | 11 | # vim: tabstop=4 expandtab shiftwidth=4 |