2009-05-09 | Paul Boddie | file changeset files shortlog | Added missing funccode to structures. Renamed function_from_method to as_instantiator with naming changes. Added a test of instantiation and keywords. |
paul@212 | 1 | #!/usr/bin/env python |
paul@212 | 2 | |
paul@212 | 3 | class C: |
paul@212 | 4 | def __init__(self, x, y, z): |
paul@212 | 5 | self.x = x |
paul@212 | 6 | self.y = y |
paul@212 | 7 | self.z = z |
paul@212 | 8 | |
paul@212 | 9 | c = C(1, 2, z=3) |
paul@212 | 10 | |
paul@212 | 11 | # vim: tabstop=4 expandtab shiftwidth=4 |