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@342 | 1 | #!/usr/bin/env python |
paul@342 | 2 | |
paul@342 | 3 | a = 1 |
paul@342 | 4 | |
paul@342 | 5 | def before(): |
paul@342 | 6 | b = a |
paul@342 | 7 | a = 2 |
paul@342 | 8 | return b |
paul@342 | 9 | |
paul@342 | 10 | result1_1 = before() |
paul@342 | 11 | |
paul@342 | 12 | # vim: tabstop=4 expandtab shiftwidth=4 |