2007-01-25 | paulb | file changeset files shortlog | Changed default absent original_def in instance lookup to None. Added commentary about certain behavioural issues. |
paulb@14 | 1 | class A: |
paulb@82 | 2 | "A class with attribute and method." |
paulb@14 | 3 | x = 123 |
paulb@14 | 4 | def m(self, x): |
paulb@14 | 5 | self.x = x |
paulb@174 | 6 | a1 = A() |
paulb@174 | 7 | a2 = A() |
paulb@23 | 8 | y = A.x |
paulb@174 | 9 | a1.m(321) |
paulb@174 | 10 | a2.m("321") |
paulb@174 | 11 | z1 = a1.x |
paulb@174 | 12 | z2 = a2.x |