1.1 --- a/tests/reference/methods.py Mon Feb 09 01:09:42 2009 +0100
1.2 +++ b/tests/reference/methods.py Fri Feb 20 01:24:14 2009 +0100
1.3 @@ -5,20 +5,20 @@
1.4
1.5 class B:
1.6 def f(self):
1.7 - pass
1.8 + print self
1.9
1.10 -def f(x):
1.11 - pass
1.12 +def f(self):
1.13 + print self
1.14
1.15 b = B()
1.16
1.17 - # on A on a
1.18 -A.f1 = f # unbound bound (a)
1.19 -A.f2 = B.f # unbound unbound
1.20 -A.f3 = b.f # bound (b) bound (b)
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.f2 = B.f # unbound unbound B (need B instance) B (need B instance)
1.24 +A.f3 = b.f # bound (b) bound (b) b b
1.25 a = A()
1.26 -a.f4 = f # N/A function
1.27 -a.f5 = B.f # N/A unbound
1.28 -a.f6 = b.f # N/A bound (b)
1.29 +a.f4 = f # N/A function N/A none
1.30 +a.f5 = B.f # N/A unbound N/A B (need B instance)
1.31 +a.f6 = b.f # N/A bound (b) N/A b
1.32
1.33 # vim: tabstop=4 expandtab shiftwidth=4