2010-06-12 | Paul Boddie | file changeset files shortlog | Fixed scope handling where names are imported into namespaces. Added a simple iter built-in function. Made the xrange test use the iteration protocol. |
paul@216 | 1 | #!/usr/bin/env python |
paul@216 | 2 | |
paul@216 | 3 | l = [1, 2, 3] |
paul@216 | 4 | x = l[0] |
paul@216 | 5 | y = l[1] |
paul@216 | 6 | z = l[-1] |
paul@216 | 7 | |
paul@216 | 8 | # vim: tabstop=4 expandtab shiftwidth=4 |