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@342 | 3 | c = len([3, 4, 5]) |
paul@342 | 4 | |
paul@342 | 5 | def len(a): |
paul@339 | 6 | return a |
paul@339 | 7 | |
paul@342 | 8 | result_2 = len(2) |
paul@339 | 9 | |
paul@339 | 10 | # vim: tabstop=4 expandtab shiftwidth=4 |