1 2 3 4 5 6 7 8 9 10 11
class Foo: a = 1 def mathod_1(self): return self.a # ^ defined: 2 # Self can be named anything def method_2(actually_self): return actually_self.a # ^ defined: 2