2007-09-04 | Paul Boddie | file changeset files shortlog | Fixed global namespace tracking (and thus base class references). |
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) |