title: How I can call method using value from variable?
body: <p>I want to call an undefined method, but it is defined in Pyro Daemon.
  For example, we have the class <code>Sender</code> without method <code>publish</code>, and I used <code>__getattr__</code> for call undefined method.</p>
  <p>For example:</p>
  <pre class="lang-py prettyprint-override"><code>class Sender:
      ...
          def __getattr__(self, name):
              def method(*args):
                  &quot;&quot;&quot;
                  for example name = publish and I want to call method self.proxy.publish
                  &quot;&quot;&quot;
                  self.call_if_connected(lambda: self.proxy.name(args))
              return method
  
  Sender.publish()
  </code></pre>
  <p>What do I need to do?</p>