tests/methods_unbound_bad.py | raw changeset files shortlog |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tests/methods_unbound_bad.py Thu Jul 05 16:01:33 2018 +0200 1.3 @@ -0,0 +1,12 @@ 1.4 +class C: 1.5 + def __init__(self, x, y, z): 1.6 + self.x = x 1.7 + self.y = y 1.8 + self.z = z 1.9 + 1.10 + def c(self): 1.11 + return self.x 1.12 + 1.13 +c = C(1, 2, 3) 1.14 +print c.c() # 1 1.15 +print C.c() # bad