Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'argument': 0.04; 'arguments': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'typeerror:': 0.09; '*expression*': 0.16; 'finney': 0.16; 'marie': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:class': 0.16; 'skip:` 20': 0.17; 'parameters': 0.20; 'error.': 0.21; '"",': 0.22; 'header:User-Agent:1': 0.26; '(most': 0.27; 'header:X-Complaints-To:1': 0.28; 'chris': 0.28; '>>>>': 0.29; 'contrast,': 0.29; 'writes:': 0.29; 'error': 0.30; 'file': 0.32; 'traceback': 0.33; 'to:addr:python-list': 0.33; 'everyone': 0.33; 'ben': 0.35; 'received:org': 0.36; "wasn't": 0.36; 'why': 0.37; 'passed': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'takes': 0.39; 'header:Received:5': 0.40; 'first': 0.61; 'therefore': 0.65; '8bit%:40': 0.65; '8bit%:43': 0.65; 'dangerous': 0.66; 'skip:\xe2 10': 0.66; 'talking': 0.66 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ben Finney Subject: Re: father class name Date: Mon, 31 Dec 2012 20:23:44 +1100 References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: rasputin.madmonks.org X-Public-Key-ID: 0xBD41714B X-Public-Key-Fingerprint: 9CFE 12B0 791A 4267 887F 520C B7AC 2E51 BD41 714B X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-gpg.asc X-Post-From: Ben Finney User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:Z1L7KTsKwMswFY4VLyvLVvf2Ns8= X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1356945835 news.xs4all.nl 6854 [2001:888:2000:d::a6]:36938 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:35844 Chris Rebert writes: > By contrast, in the first part of the *expression* > `haha(object).theprint()`, you passed an argument (namely, `object`). > Since __init__() wasn't expecting any arguments whatsoever, you > therefore got an error. Why is everyone talking about the initialiser, ‘__init__’? When: > >>>> haha(object).theprint() > > Traceback (most recent call last): > > File "", line 1, in > > TypeError: object.__new__() takes no parameters The error is talking about the constructor, ‘__new__’. -- \ “It's dangerous to be right when the government is wrong.” | `\ —Francois Marie Arouet Voltaire | _o__) | Ben Finney