2007-01-08 | paulb | file changeset files shortlog | Added an exception to the locally defined function names rule: within a class definition, methods should not be accessible via their plain names alone (ie. like functions). |
paulb@106 | 1 | l = [(0, 10), (10, 20)] |
paulb@106 | 2 | y = 23 |
paulb@106 | 3 | for a, b in l: |
paulb@106 | 4 | for i in a, b: |
paul@0 | 5 | x = i |
paulb@106 | 6 | else: # NOTE: Need to support StopIteration! |
paul@0 | 7 | x = y |
paul@0 | 8 | else: |
paul@0 | 9 | a = b |