2009-03-05 | Paul Boddie | file changeset files shortlog | Added more notes about, and a test of, class attribute context behaviour. |
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 |