2007-02-23 | paulb | file changeset files shortlog | Fixed lambda annotations. Fixed list comprehensions without if clauses. Added assert support and the AssertionError built-in type. Made the simplification process raise SimplifiedError instances when unsupported nodes are encountered. |
paulb@201 | 1 | def f(x, y): |
paulb@201 | 2 | return x |
paulb@201 | 3 | |
paulb@201 | 4 | a = [1, 2, 3] |
paulb@201 | 5 | b = ["1", "2", "3"] |
paulb@201 | 6 | |
paulb@201 | 7 | l = [f(x, y) for x in a for y in b if y > "1" if x > 1] |