2012-11-04 | Paul Boddie | file changeset files shortlog | Introduced pre-made classes for various built-in types supporting constants. Removed the subclasses of Class, since no distinction was being made between them. |
paul@427 | 1 | #!/usr/bin/env python |
paul@427 | 2 | |
paul@427 | 3 | class C: |
paul@427 | 4 | def __init__(self): |
paul@427 | 5 | self.a = 0 |
paul@427 | 6 | |
paul@427 | 7 | c = C() |
paul@427 | 8 | c.a = 123 |
paul@427 | 9 | result_123 = c.a |
paul@427 | 10 | |
paul@427 | 11 | # vim: tabstop=4 expandtab shiftwidth=4 |