2012-05-10 | Paul Boddie | file changeset files shortlog | Changed the builtins module loading to use the module search path. This makes it easier to run the test program from another location. Added a note about relative imports. |
paul@243 | 1 | #!/usr/bin/env python |
paul@243 | 2 | |
paul@243 | 3 | class D: |
paul@243 | 4 | def __init__(self): |
paul@243 | 5 | self.x = 222 |
paul@243 | 6 | |
paul@243 | 7 | d = D() |
paul@243 | 8 | result_222 = d.x |
paul@243 | 9 | |
paul@243 | 10 | # vim: tabstop=4 expandtab shiftwidth=4 |