2007-02-22 | paulb | file changeset files shortlog | Added tentative ListComp, ListCompFor, ListCompIf and Sliceobj support. Changed pop-up element generation so that in cases where no information is available, the pop-up elements are not generated. Added a test of list comprehensions. Added a slice built-in type. |
paulb@21 | 1 | a = 123 |
paulb@155 | 2 | |
paulb@21 | 3 | def f(x): |
paulb@21 | 4 | global a |
paulb@21 | 5 | a = x |
paulb@155 | 6 | |
paulb@21 | 7 | def g(a): |
paulb@21 | 8 | b = a |
paulb@155 | 9 | |
paulb@155 | 10 | def h(b): |
paulb@155 | 11 | a = b |
paulb@155 | 12 | |
paulb@21 | 13 | class A: |
paulb@21 | 14 | x = a |
paulb@21 | 15 | global a |
paulb@21 | 16 | y = a |
paulb@155 | 17 | |
paulb@155 | 18 | f(234) |
paulb@155 | 19 | g(345) |
paulb@155 | 20 | h(456) |