2009-05-17 | Paul Boddie | file changeset files shortlog | Fixed unary operator code generation. Added subscript support. Added RSVP implementations of list.__getitem__ and int.__neg__. Added a test of subscripts and a currently unused test of star parameter unpacking. |
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 |