2010-09-04 | Paul Boddie | file changeset files shortlog | Made attribute access inspection generic, fixing an issue with unpredictable accesses. Introduced potentially specific attribute access inspection to the Slice and Subscript node handlers. Added a test of slicing. Added type checking for the current list.__getitem__ implementation. |
paul@372 | 1 | #!/usr/bin/env python |
paul@372 | 2 | |
paul@372 | 3 | l = [1, 2, 3, 4, 5] |
paul@372 | 4 | |
paul@372 | 5 | result1_3 = len(l[2:]) |
paul@372 | 6 | result_2 = len(l[:2]) |
paul@372 | 7 | result2_3 = len(l[1:4]) |
paul@372 | 8 | |
paul@372 | 9 | # vim: tabstop=4 expandtab shiftwidth=4 |