Use `object` to instantiate custom class
<p>here is my haha  class</p>

<pre><code>class  haha(object):
  def  theprint(self):
    print "i am here"

&gt;&gt;&gt; haha().theprint()
i am here
&gt;&gt;&gt; haha(object).theprint()
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
TypeError: object.__new__() takes no parameters
</code></pre>

<p>why <code>haha(object).theprint()</code> get wrong output?</p>
