1.1 --- a/tests/reference/methods.py Fri Feb 20 01:24:14 2009 +0100
1.2 +++ b/tests/reference/methods.py Sun Feb 22 02:03:17 2009 +0100
1.3 @@ -1,8 +1,5 @@
1.4 #!/usr/bin/env python
1.5
1.6 -class A:
1.7 - pass
1.8 -
1.9 class B:
1.10 def f(self):
1.11 print self
1.12 @@ -10,10 +7,14 @@
1.13 def f(self):
1.14 print self
1.15
1.16 +class A:
1.17 + f0 = f
1.18 +
1.19 b = B()
1.20
1.21 # on A on a context on A attribute context on a attribute
1.22 -A.f1 = f # unbound bound (a) A a
1.23 +A.f0 # unbound bound (a) A (need A instance) a
1.24 +A.f1 = f # unbound bound (a) A (need A instance) a
1.25 A.f2 = B.f # unbound unbound B (need B instance) B (need B instance)
1.26 A.f3 = b.f # bound (b) bound (b) b b
1.27 a = A()