2011-07-02 | Paul Boddie | file changeset files shortlog | Moved some code generation methods into a new Assembler class. Separated sequence element storage into a separate method which may form the basis of a native library routine. |
paul@406 | 1 | #!/usr/bin/env python |
paul@406 | 2 | |
paul@406 | 3 | class C: |
paul@406 | 4 | def init(self): |
paul@406 | 5 | self.x = 456 |
paul@406 | 6 | |
paul@406 | 7 | class D(C): |
paul@406 | 8 | def f(self): |
paul@406 | 9 | return self.x |
paul@406 | 10 | |
paul@406 | 11 | d = D() |
paul@406 | 12 | d.init() |
paul@406 | 13 | result_456 = d.f() |
paul@406 | 14 | |
paul@406 | 15 | # vim: tabstop=4 expandtab shiftwidth=4 |