#38 Ales
Sem fakt lachtan, sorry
class Proxy(object):
def __init__(self, server):
self.server = server
def __getattr__(self, name):
def _method_missing(*args, **kwargs):
if hasattr(self.server, name):
output = getattr(self.server, name)(*args, **kwargs)
return output
else:
print("Unknown message: " + name)
return _method_missing
Díky moc