2010-06-13 | Paul Boddie | file changeset files shortlog | Fixed exception attribute initialisation for translation errors. Reintroduced the _scope attribute on AST nodes in order to support supposedly harmless changes in scope (such as the "importing" of a built-in or global into a local scope where the name is redefined subsequently). Reorganised the tests according to the above shadowing policy change. Introduced tentative slicing support plus built-in functions that rely on slicing. |
paul@339 | 1 | #!/usr/bin/env python |
paul@339 | 2 | |
paul@339 | 3 | def e(self, x): |
paul@339 | 4 | return x |
paul@339 | 5 | |
paul@339 | 6 | class C: |
paul@342 | 7 | for x in range(0, 10): |
paul@342 | 8 | e = e # right hand side name changes origin |
paul@339 | 9 | |
paul@339 | 10 | c = C() |
paul@339 | 11 | |
paul@339 | 12 | # vim: tabstop=4 expandtab shiftwidth=4 |