Lichen

tests/methods_unbound_bad.py

1047:101519d4e2c2
5 months ago Paul Boddie Employ generic operations instead of operator method calls.
     1 class C:     2     def __init__(self, x, y, z):     3         self.x = x     4         self.y = y     5         self.z = z     6      7     def c(self):     8         return self.x     9     10 c = C(1, 2, 3)    11 print c.c() # 1    12 print C.c() # bad