Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #35833

Re: father class name

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feed.xsnews.nl!border-1.ams.xsnews.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <bahamutzero8825@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.008
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'received:209.85.223': 0.03; 'cpython': 0.05; 'typeerror:': 0.09; 'def': 0.10; 'here"': 0.16; 'output?': 0.16; 'subject:class': 0.16; 'wrote:': 0.17; 'windows': 0.19; 'parameters': 0.20; 'trying': 0.21; '"",': 0.22; 'defined': 0.22; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; '(most': 0.27; '>>>>': 0.29; 'parameters.': 0.29; 'class': 0.29; 'file': 0.32; 'print': 0.32; 'traceback': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'wrong': 0.34; 'received:209.85': 0.35; 'message-id:@gmail.com': 0.36; 'method': 0.36; 'why': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'takes': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'skip:6 10': 0.63; 'here': 0.65
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=ocMXWTobq0YuiDcY6NhyNc7+YxqAd3dWDUzAbLFl4rs=; b=kjzGlgNCVFS1cPLOWSbyOWwx8cYXmX5dC6e8dtyt0d7C8eEsttucvyVth9Dks1wHsK 1PRNCbzILleL0S4JOZrxgYh9j1ZACwywS7KZ+gYH5mBKTFyAbxB+I7dOQG0ev3i87JcY RegcNlKt/U/y4uzpRJjzjz3YzwW7v5d4hyHYLutsBGyts99iAtQ1s/QYcC52xG3al0h9 Z5ExerYQqiWUK7D+OkybEtqovjTziRwYrdE6RbVsapKxVfmagVSLrmcRFq8MQkT6W5To C9YGyuz/lWDelBojclqUglNqJ4w8SrkE6SiRLtWRKR7IMDFnuXPFduq2sqQUZg0gGcsh JX4A==
X-Received by 10.50.190.162 with SMTP id gr2mr35230174igc.65.1356928498211; Sun, 30 Dec 2012 20:34:58 -0800 (PST)
Date Sun, 30 Dec 2012 22:34:58 -0600
From Andrew Berg <bahamutzero8825@gmail.com>
User-Agent Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0
MIME-Version 1.0
To "comp.lang.python" <python-list@python.org>
Subject Re: father class name
References <CA+YdQ_6v3m5JH0PusuYffb9xa=U56sNGKxYmy_w0hU04V8ZvgQ@mail.gmail.com>
In-Reply-To <CA+YdQ_6v3m5JH0PusuYffb9xa=U56sNGKxYmy_w0hU04V8ZvgQ@mail.gmail.com>
X-Enigmail-Version 1.4.6
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1484.1356928506.29569.python-list@python.org> (permalink)
Lines 20
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1356928506 news.xs4all.nl 6876 [2001:888:2000:d::a6]:50845
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:35833

Show key headers only | View raw


On 2012.12.30 22:18, contro opinion 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?
> 
> 
You have no __init__() method defined that would take parameters. What
are you trying to do?
-- 
CPython 3.3.0 | Windows NT 6.2.9200.16461

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: father class name Andrew Berg <bahamutzero8825@gmail.com> - 2012-12-30 22:34 -0600

csiph-web