Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!news.glorb.com!news.astraweb.com!border5.newsrouter.astraweb.com!not-for-mail From: Ben Finney Newsgroups: comp.lang.python Subject: Re: Python scoping References: <2f69dda9-9532-4fd1-af06-ba85cc2a0e33@v5g2000yqn.googlegroups.com> <87ei2oqaqe.fsf@benfinney.id.au> <87aadbrjrh.fsf@benfinney.id.au> X-Public-Key-ID: 0xAC128405 X-Public-Key-Fingerprint: 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405 X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-pubkey.asc X-Post-From: Ben Finney Date: Tue, 21 Jun 2011 14:06:12 +1000 Message-ID: <87tybjq157.fsf@benfinney.id.au> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:TcUJID8NGUcFfe7otDt1yiTjMHA= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Lines: 17 Organization: Unlimited download news at news.astraweb.com NNTP-Posting-Host: 2b1f582d.news.astraweb.com X-Trace: DXC=@2H`lmVWl4Mm=FFS;n7SGML?0kYOcDh@J7^o:UA4R?cEJoZ66_70GPF]G;2>V^?kWCbEW9A[5UK?ENZ[SL`C\KgCPE4Blh[d?nB Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:8067 Chris Angelico writes: > On Tue, Jun 21, 2011 at 12:38 PM, Ben Finney wrote: > > The *binding* is scoped. > > And the binding follows the exact same rules as anything else would. > It has scope and visibility. In terms of the OP, the binding IS like a > variable. Yes. So let's stop behaving as though the *name* behaves like a variable. It isn't, and doesn't. -- \ “Computer perspective on Moore's Law: Human effort becomes | `\ twice as expensive roughly every two years.” —anonymous | _o__) | Ben Finney