Python scoping

Ben Finney ben+python at benfinney.id.au
Tue Jun 21 00:06:12 EDT 2011


Chris Angelico <rosuav at gmail.com> writes:

> On Tue, Jun 21, 2011 at 12:38 PM, Ben Finney <ben+python at benfinney.id.au> 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



More information about the Python-list mailing list