2006-12-03 | paulb | file changeset files shortlog | Reordered methods, added docstrings. Removed the make_namespace method, inserting its contents in the only place the method was used. |
paulb@122 | 1 | class A: |
paulb@122 | 2 | pass |
paulb@122 | 3 | class B: |
paulb@122 | 4 | pass |
paulb@122 | 5 | |
paulb@122 | 6 | x = 1 |
paulb@122 | 7 | if x: |
paulb@122 | 8 | a = A() |
paulb@122 | 9 | a.x = 2 |
paulb@122 | 10 | else: |
paulb@122 | 11 | a = B() |
paulb@122 | 12 | a.x |