2009-05-23 | Paul Boddie | file changeset files shortlog | Added callable context vs. self argument validation in CheckFrame, plus a test which detects an attempt to fake the self argument with an incompatible instance. |
paul@219 | 1 | #!/usr/bin/env python |
paul@219 | 2 | |
paul@219 | 3 | class C: |
paul@219 | 4 | clsattr = 123 |
paul@219 | 5 | clsattr2 = 456 |
paul@219 | 6 | |
paul@219 | 7 | a = C.clsattr |
paul@219 | 8 | b = C.clsattr2 |
paul@219 | 9 | |
paul@219 | 10 | # vim: tabstop=4 expandtab shiftwidth=4 |