class Foo(object):
def __getattr__(sel,item):
print('y') def __getattribute(self,item):
print('x')
obj = Foo()
obj.y