1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/tests/reference/methods.py Sun May 18 01:08:03 2008 +0200
1.3 @@ -0,0 +1,24 @@
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 + pass
1.12 +
1.13 +def f(x):
1.14 + pass
1.15 +
1.16 +b = B()
1.17 +
1.18 + # on A on a
1.19 +A.f1 = f # unbound bound (a)
1.20 +A.f2 = B.f # unbound unbound
1.21 +A.f3 = b.f # bound (b) bound (b)
1.22 +a = A()
1.23 +a.f4 = f # N/A function
1.24 +a.f5 = B.f # N/A unbound
1.25 +a.f6 = b.f # N/A bound (b)
1.26 +
1.27 +# vim: tabstop=4 expandtab shiftwidth=4