2007-05-27 | paulb | raw files shortlog changelog graph | Made the test function as intended. | |
tests/class.py (file) |
1.1 --- a/tests/class.py Sun May 27 19:45:48 2007 +0200 1.2 +++ b/tests/class.py Sun May 27 20:42:26 2007 +0200 1.3 @@ -1,10 +1,14 @@ 1.4 class A: 1.5 "A class with attribute and method." 1.6 x = 123.456 1.7 + x2 = x 1.8 + 1.9 def m(self, x): 1.10 self.x = x 1.11 - def n(self, y=x): 1.12 + 1.13 + def n(self, y=A.x): 1.14 self.y = y 1.15 + n2 = n 1.16 1.17 a1 = A() 1.18 a2 = A()