

def __getattr__(self, name):
    with self._client.lock:
        method = self._methods.get(name)
        if (method is None):
            self._client.log.debug(('new method %r name=%r' % (self, name)))
            method = RemoteMethod(self, name)
            self._methods[name] = method
        return method

dataset/ETHPy150Open dsiroky/snakemq/snakemq/rpc.py RpcInstProxy.__getattr__/original