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@59 | 1 | #!/usr/bin/env python |
paul@59 | 2 | |
paul@59 | 3 | class C: |
paul@137 | 4 | def __init__(self, x): |
paul@208 | 5 | self.x = x |
paul@59 | 6 | |
paul@137 | 7 | c = C(123) |
paul@230 | 8 | result_123 = c.x |
paul@59 | 9 | |
paul@59 | 10 | # vim: tabstop=4 expandtab shiftwidth=4 |