class Descriptor:
def __get__(self, instance, owner):
print("__get__", instance, owner)
return self.pingpong
def pingpong(self, *args, **kwargs):
print(args, kwargs)
return 1
class Demo:
__new__ = Descriptor()
demo = Demo()
# __get__ None <class '__main__.Demo'>
# (<class '__main__.Demo'>,) {}