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@193 | 1 | #!/usr/bin/env python |
paul@193 | 2 | |
paul@193 | 3 | class C: |
paul@193 | 4 | clsattr = 123 |
paul@193 | 5 | clsattr = 456 |
paul@193 | 6 | |
paul@193 | 7 | a = C |
paul@193 | 8 | b = C.clsattr |
paul@193 | 9 | |
paul@193 | 10 | # vim: tabstop=4 expandtab shiftwidth=4 |