2008-04-06 | Paul Boddie | file changeset files shortlog | Made optimised attribute access via self optional. Renamed an example. |
paul@43 | 1 | #!/usr/bin/env python |
paul@43 | 2 | |
paul@43 | 3 | class C: |
paul@43 | 4 | clsattr = 123 |
paul@43 | 5 | |
paul@43 | 6 | def __init__(self, value): |
paul@43 | 7 | self.instattr = value |
paul@43 | 8 | |
paul@43 | 9 | # vim: tabstop=4 expandtab shiftwidth=4 |