father class name
contro opinion
contropinion at gmail.com
Sun Dec 30 23:18:48 EST 2012
More information about the Python-list mailing list
Sun Dec 30 23:18:48 EST 2012
- Previous message (by thread): Python 3.3, gettext and Unicode problems
- Next message (by thread): father class name
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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: <http://mail.python.org/pipermail/python-list/attachments/20121231/02266892/attachment.html>
- Previous message (by thread): Python 3.3, gettext and Unicode problems
- Next message (by thread): father class name
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list