title: cannot reach function in class parameter
body: <pre><code>class Method:
      def __init__(self,command):
          eval('Method.command')
      def send_msg(self):
          return True
  </code></pre>
  
  <p>I am looking forward to get <code>True</code> with <code>print(Method(send_msg))</code> but instead it raises the following error.</p>
  
  <pre><code>NameError: name 'send_msg' is not defined
  </code></pre>
  
  <p>How can I resolve this problem?</p>