the class problem

contro opinion contropinion at
Mon Dec 31 07:34:19 CET 2012

here is my haha  class
class  haha(object):
  def  theprint(self):
    print "i am here"

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

why   haha(object).theprint()  get wrong output?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list