Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!ecngs!feeder2.ecngs.de!novso.com!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!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.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; '__init__': 0.09; 'constructor': 0.09; 'question.': 0.14; '[by': 0.16; '__new__': 0.16; 'conflicting': 0.16; 'finney': 0.16; 'fits': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'message-id:@cskk.homeip.net': 0.16; 'received:211.29': 0.16; 'received:211.29.132': 0.16; 'received:cskk.homeip.net': 0.16; 'received:homeip.net': 0.16; 'received:optusnet.com.au': 0.16; 'received:syd.optusnet.com.au': 0.16; 'simpson': 0.16; 'wrote:': 0.18; 'machine': 0.22; 'separate': 0.22; 'header:User-Agent:1': 0.23; 'defined': 0.27; 'header:In-Reply-To:1': 0.27; 'asked': 0.31; 'writes:': 0.31; 'subject:the': 0.34; 'could': 0.34; "can't": 0.35; 'there': 0.35; 'received:com.au': 0.36; 'wrong': 0.37; 'two': 0.37; 'clear': 0.37; 'ben': 0.38; 'received:211': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'new': 0.61; 'content- disposition:inline': 0.62; 'kind': 0.63; 'such': 0.63; 'skip:\xe2 10': 0.65; 'construction': 0.72; '8bit%:46': 0.78; 'batchelder': 0.84; 'step.': 0.91; 'mr.': 0.98 Date: Sat, 1 Feb 2014 10:18:29 +1100 From: Cameron Simpson To: python-list@python.org Subject: Re: __init__ is the initialiser MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <858utviwgs.fsf@benfinney.id.au> User-Agent: Mutt/1.5.21 (2010-09-15) References: <858utviwgs.fsf@benfinney.id.au> X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.1 cv=HZAtEE08 c=1 sm=1 tr=0 a=YuQlxtEQCowy2cfE5kc7TA==:117 a=YuQlxtEQCowy2cfE5kc7TA==:17 a=ZtCCktOnAAAA:8 a=PO7r1zJSAAAA:8 a=LcaDllckn3IA:10 a=IkcTkHD0fZMA:10 a=vrnE16BAAAAA:8 a=8AHkEIZyAAAA:8 a=1U9r9e_U-9MA:10 a=W4ub2mWhAAAA:8 a=ZCUwMjD-I379eTjn95gA:9 a=QEXdDO2ut3YA:10 a=0xq-cdXUTwIA:10 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1391210314 news.xs4all.nl 2900 [2001:888:2000:d::a6]:45029 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65149 On 01Feb2014 10:05, Ben Finney wrote: > Ned Batchelder writes: > > Why can't we call __init__ the constructor and __new__ the allocator? > > Because those terms already have meanings, and “__new__” fits the > meaning of “constructor” better. +1 on not giving new conflicting meanings to terms already well defined in practice. Better just to make in clear in the __init__ docs that there is a separate construction step. -- Cameron Simpson On two occasions I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question. - Babbage