Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder7.xlned.com!multikabel.net!newsfeed10.multikabel.net!post30.multikabel.net!cache100.multikabel.net!not-for-mail Date: Thu, 23 Aug 2012 20:02:00 +0200 From: Jan Kuiken User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 Newsgroups: comp.lang.python Subject: Re: Objects in Python References: <18409992-1e28-4721-8e64-60c69668da4e@googlegroups.com> <1pidnX71rLNrsajNnZ2dnUVZ8jCdnZ2d@bt.com> <5035ad87$0$1645$c3e8da3$76491128@news.astraweb.com> In-Reply-To: <5035ad87$0$1645$c3e8da3$76491128@news.astraweb.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: X-Complaints-To: abuse@ziggo.nl Organization: Ziggo Lines: 23 NNTP-Posting-Host: 84.107.178.48 (84.107.178.48) NNTP-Posting-Date: Thu, 23 Aug 2012 20:01:59 +0200 X-Trace: ae6b250367017f1ce179530002 Xref: csiph.com comp.lang.python:27753 On 8/23/12 06:11 , Steven D'Aprano wrote: >> 2) Related to the above, you can infinitely nest scopes. There's nothing >> wrong with having six variables called 'q'; you always use the innermost >> one. Yes, this can hurt readability > > Well, there you go. There *is* something wrong with having six variables > called 'q'. Sometimes you don't want only six variables called 'q' but a hundred of them :-) def fac(q): if q < 1 : return 1 else: return q * fac(q-1) print(fac(100)) Jan Kuiken