class problem
Chris Rebert
clp2 at rebertia.com
Mon Dec 31 01:55:40 EST 2012
On Sun, Dec 30, 2012 at 10:36 PM, contro opinion <contropinion at gmail.com> wrote:
> 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?
This marks the third time today that you've posted *this exact same
question* to python-list AKA comp.lang.python.
You received multiple answers the first time you posted it. Please
desist from posting it any further, lest ye get plonk-ed.
If you did not understand the responses you obtained, please reply in
the original thread and ask for clarification, rather than re-posting.
– Chris
More information about the Python-list
mailing list