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@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 |