Что выведет код?
class A:
def __init__(self, x):
self.x = x
def __getattribute__(self, name):
if name == '__add__':
self.x *= 10
return object.__getattribute__(self, name)
def __add__(self, other):
return self.x + other.x
a1 = A(2)
a2 = A(3)
print(a1 + a2, a1.__add__(a2))