title: python pass object as argument
body: <p>How can I pass an object as an argument to a class method and call the method of the passed object when the class method is called?</p>
  
  <p>Say I have:</p>
  
  <pre><code>class myclass:
      def __init__(self):
          pass
      def myfunc(self, something):
          something.do()
  
  
  anobject = blah.xyz()
  
  another_obj = myclass()
  another_obj.myfunc(anobject)
  </code></pre>