Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!news.le-studio75.com!news.univ-fcomte.fr!not-for-mail From: Laurent Claessens Newsgroups: comp.lang.python Subject: Re: scope of function parameters Date: Mon, 30 May 2011 11:08:23 +0200 Organization: A poorly-installed InterNetNews site Lines: 16 Message-ID: <4DE35E87.8060208@gmail.com> References: <94fdk7FihlU1@mid.individual.net> <87tycd89qc.fsf@benfinney.id.au> <4DE3495D.9080309@gmail.com> NNTP-Posting-Host: soleil.univ-fcomte.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news.univ-fcomte.fr 1306746499 1214 194.57.84.1 (30 May 2011 09:08:19 GMT) X-Complaints-To: news@news.univ-fcomte.fr NNTP-Posting-Date: Mon, 30 May 2011 09:08:19 +0000 (UTC) Cc: python-list@python.org User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 In-Reply-To: Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:6637 Le 30/05/2011 11:02, Terry Reedy a écrit : > On 5/30/2011 3:38 AM, Laurent wrote: > >> Cool. I was thinking that "5" was the name, but >> >>> 5.__add__(6) >> File "", line 1 >> 5.__add__(6) > > > Try 5 .__add__(6) What is the rationale behind the fact to add a space between "5" and ".__add__" ? Why does it work ? Laurent