Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #8062

Re: Python scoping

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.005
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.06; '21,': 0.09; 'pm,': 0.10; 'received:209.85.214.174': 0.14; 'received:mail-iw0-f174.google.com': 0.14; 'wrote:': 0.14; '*binding*': 0.16; 'finney': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'variable.': 0.16; 'tue,': 0.17; 'header:In-Reply-To:1': 0.21; 'message-id:@mail.gmail.com': 0.28; 'received:209.85.214': 0.28; 'binding': 0.30; 'to:addr:python- list': 0.33; 'else': 0.35; 'rules': 0.37; 'received:google.com': 0.37; 'received:209.85': 0.37; 'anything': 0.38; 'subject:: ': 0.38; 'received:209': 0.39; 'to:addr:python.org': 0.39; 'exact': 0.65
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=B3DSKCU6Yhz17+CECB0ceOr30SNxS/RqGBSTC3Y021U=; b=GYQBy+u1RWO1hBgrPhHjq+55WIZHgjI4D9ks9e1ZGZQUM4KBNWU6JVvxIhgxr7ZBh9 urqdn6OcSsNGtVsxWNjcdrBEz4UCpE5Re4BJSpkjhQtfuyaXzk7k85U7irlUO4KqVZh1 Mv3U7bq531C0L4HZNQD+hhxqwxUkL2f+5zlzQ=
DomainKey-Signature a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=osotf9PpDVkXeJgjhZfJ1L5G0U0WdTgRY+pDLCCSglTVXr8r9wNEnU9ampIVnRXtc4 YLgjvbYmok0iydMdrMSXMGassiTBC1BSXqG919drrHm9l97cPDre53xaOzB2ocbo9zKQ mgCyBbjCjmeGDVzdkENoHiLIyT5R93R2f22uQ=
MIME-Version 1.0
In-Reply-To <87aadbrjrh.fsf@benfinney.id.au>
References <2f69dda9-9532-4fd1-af06-ba85cc2a0e33@v5g2000yqn.googlegroups.com> <87ei2oqaqe.fsf@benfinney.id.au> <mailman.205.1308617759.1164.python-list@python.org> <87aadbrjrh.fsf@benfinney.id.au>
Date Tue, 21 Jun 2011 13:21:18 +1000
Subject Re: Python scoping
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.212.1308626481.1164.python-list@python.org> (permalink)
Lines 9
NNTP-Posting-Host 82.94.164.166
X-Trace 1308626481 news.xs4all.nl 49048 [::ffff:82.94.164.166]:49324
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:8062

Show key headers only | View raw


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

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Python scoping gervaz <gervaz@gmail.com> - 2011-06-20 15:35 -0700
  Re: Python scoping Chris Angelico <rosuav@gmail.com> - 2011-06-21 08:52 +1000
  Re: Python scoping Ben Finney <ben+python@benfinney.id.au> - 2011-06-21 10:39 +1000
    Re: Python scoping Chris Angelico <rosuav@gmail.com> - 2011-06-21 10:55 +1000
      Re: Python scoping Ben Finney <ben+python@benfinney.id.au> - 2011-06-21 12:38 +1000
        Re: Python scoping Chris Angelico <rosuav@gmail.com> - 2011-06-21 13:21 +1000
          Re: Python scoping Ben Finney <ben+python@benfinney.id.au> - 2011-06-21 14:06 +1000
            Re: Python scoping gervaz <gervaz@gmail.com> - 2011-06-21 02:05 -0700
  Re: Python scoping Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-06-21 00:57 +0000

csiph-web