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


Groups > comp.lang.python > #49498

Re: Closures in leu of pointers?

Path csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder2-2.proxad.net!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!xlned.com!feeder1.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.009
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'argument': 0.05; 'assignment': 0.07; 'level,': 0.07; 'variables': 0.07; 'assigning': 0.09; 'latter': 0.09; 'mentions': 0.09; 'variables.': 0.09; 'python': 0.11; 'question.': 0.14; '"global"': 0.16; 'binding,': 0.16; 'bound,': 0.16; 'claim,': 0.16; 'declared': 0.16; 'global.)': 0.16; 'python",': 0.16; 'statements,': 0.16; 'variable.': 0.16; 'variables,': 0.16; 'language': 0.16; 'wrote:': 0.18; 'variable': 0.18; 'module': 0.19; 'seems': 0.21; '(the': 0.22; 'saying': 0.22; 'refers': 0.24; 'earlier': 0.24; "haven't": 0.24; 'source': 0.25; 'asking': 0.27; 'defined': 0.27; 'header:In- Reply-To:1': 0.27; 'am,': 0.29; 'strongly': 0.30; 'message- id:@mail.gmail.com': 0.30; 'asked': 0.31; 'code': 0.31; 'block,': 0.31; 'url:python': 0.33; 'there,': 0.34; 'agree': 0.35; 'common': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'material': 0.36; "i'll": 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'clear': 0.37; 'being': 0.38; 'to:addr:python- list': 0.38; 'that,': 0.38; 'short': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'even': 0.60; 'ian': 0.60; 'is.': 0.60; 'free': 0.61; 'url:3': 0.61; 'back': 0.62; 'name': 0.63; 'refer': 0.63; 'more': 0.64; '30,': 0.65; 'talking': 0.65; 'here': 0.66; 'hand': 0.80; 'actually,': 0.84; 'dominant': 0.84; 'pardon': 0.84; 'url:reference': 0.84; 'have.': 0.93; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=etPa0ET5zVSw9WSbAegjol335n+RGVgL2j/qhgGojDw=; b=cCYLNFknPK/yzGB21JBsc/TmwfQGbjt3/tQfRztIve80tek+aQmryhTyEvy7ZqSRkg CtUJgbyKS+r5oV11PbSSz1eM7SalzCaXqBX/LL8ir7EnpFPM0w1tjpP/l5NYd6NBboIc QZKS+T2L+CkG2Uch7XAP/7qOjMmc8U+MYR/M3ffvRYhtRLwNz7oBPqQ6A44ggk4wYeBm BuLaHj1Ux4xDXuHOdm80pmspTDek0p2qKIXs4e6kwuBSZd48HMthS2uDlWM17a2WHcd0 Y3AmeJ9mN6LGrVZfcS5be0OztzdPGhrAYQpqvpvjtaegLYDVrtei1tZ4wP/rdzoL7F8H PGCQ==
X-Received by 10.66.145.34 with SMTP id sr2mr20217830pab.94.1372612761793; Sun, 30 Jun 2013 10:19:21 -0700 (PDT)
MIME-Version 1.0
In-Reply-To <CALwzid=fMan1ki6-gzS+X0DKRXRjcnjiQ-=PkMMOZju7zg0bjQ@mail.gmail.com>
References <2a2072e3-4b12-4ada-872c-1240d2379928@googlegroups.com> <mailman.3984.1372500107.3114.python-list@python.org> <bc798729-f935-448d-9d62-c409b2d12e76@googlegroups.com> <51CEE8E9.4070703@gmail.com> <51CF1309.1010504@rece.vub.ac.be> <CALwzidngNRL8EU=YMDQjbF4=uyDLoF4EEYy3BMqYz00uct0fMQ@mail.gmail.com> <51D0035A.60004@rece.vub.ac.be> <CALwzid=fMan1ki6-gzS+X0DKRXRjcnjiQ-=PkMMOZju7zg0bjQ@mail.gmail.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Sun, 30 Jun 2013 11:18:41 -0600
Subject Re: Closures in leu of pointers?
To Python <python-list@python.org>
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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.4032.1372612771.3114.python-list@python.org> (permalink)
Lines 32
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1372612771 news.xs4all.nl 15999 [2001:888:2000:d::a6]:51423
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:49498

Show key headers only | View raw


On Sun, Jun 30, 2013 at 11:13 AM, Ian Kelly <ian.g.kelly@gmail.com> wrote:
> On Sun, Jun 30, 2013 at 4:07 AM, Antoon Pardon
> <antoon.pardon@rece.vub.ac.be> wrote:
>> I don't think this reference is as strong as you think it is. Here is
>> a paragraph somewhat lower:
>>
>> ] If a name is bound in a block, it is a local variable of that block,
>> ] unless declared as nonlocal. If a name is bound at the module level, ] it
>> is a global variable. (The variables of the module code block are ] local
>> and global.) If a variable is used in a code block but not
>> ] defined there, it is a free variable.
>>
>> So the language documentation mentions these names as being variables.
>
> It seems to refer to "local" and "global" variables as a short hand
> for talking about specific types of name binding, which is the
> dominant nomenclature of the documentation.  You asked why people talk
> about Python binding names instead of assigning variables, and I think
> the reference material is a clear source for that, even if it does
> also use the word "variable".  There is also the section on assignment
> statements, where it again refers to names being bound, not variables
> being assigned:
>
> http://docs.python.org/3/reference/simple_stmts.html#assignment-statements

Actually, looking back at your earlier post, I think I misunderstood
your question.  You weren't asking "why do people talk about binding
names instead of assigning variables in Python", but more strongly
"why do people claim there are no variables in Python"?  If the latter
is a common claim, then I haven't really taken notice of it, but I'll
take your word that you have.  I don't agree with that -- saying that
Python has no variables is just an argument of semantics.

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


Thread

Closures in leu of pointers? cts.private.yahoo@gmail.com - 2013-06-29 02:34 -0700
  Re: Closures in leu of pointers? Fábio Santos <fabiosantosart@gmail.com> - 2013-06-29 10:42 +0100
  Re: Closures in leu of pointers? Peter Otten <__peter__@web.de> - 2013-06-29 12:01 +0200
    Re: Closures in leu of pointers? cts.private.yahoo@gmail.com - 2013-06-29 04:21 -0700
      Re: Closures in leu of pointers? cts.private.yahoo@gmail.com - 2013-06-29 04:44 -0700
        Re: Closures in leu of pointers? Peter Otten <__peter__@web.de> - 2013-06-29 14:12 +0200
          Re: Closures in leu of pointers? cts.private.yahoo@gmail.com - 2013-06-29 05:26 -0700
            Re: Closures in leu of pointers? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-06-29 15:37 +0100
              Re: Closures in leu of pointers? cts.private.yahoo@gmail.com - 2013-06-29 07:48 -0700
        Re: Closures in leu of pointers? Michael Torrie <torriem@gmail.com> - 2013-06-29 07:56 -0600
        Re: Closures in leu of pointers? Michael Torrie <torriem@gmail.com> - 2013-06-29 12:36 -0600
      Re: Closures in leu of pointers? Michael Torrie <torriem@gmail.com> - 2013-06-29 08:02 -0600
      Re: Closures in leu of pointers? Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-06-29 19:02 +0200
        Re: Closures in leu of pointers? rusi <rustompmody@gmail.com> - 2013-06-29 10:33 -0700
          Re: Closures in leu of pointers? cts.private.yahoo@gmail.com - 2013-06-29 11:37 -0700
            Re: Closures in leu of pointers? Michael Torrie <torriem@gmail.com> - 2013-06-29 12:58 -0600
            Re: Closures in leu of pointers? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-29 18:59 +0000
        Re: Closures in leu of pointers? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-29 18:51 +0000
          Re: Closures in leu of pointers? Michael Torrie <torriem@gmail.com> - 2013-06-29 13:04 -0600
          Re: Closures in leu of pointers? rusi <rustompmody@gmail.com> - 2013-06-29 12:11 -0700
      Re: Closures in leu of pointers? Michael Torrie <torriem@gmail.com> - 2013-06-29 12:35 -0600
        Re: Closures in leu of pointers? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-29 19:19 +0000
          Re: Closures in leu of pointers? Tim Chase <tim@thechases.com> - 2013-06-29 14:42 -0500
            Re: Closures in leu of pointers? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-30 01:41 +0000
          Re: Closures in leu of pointers? Joshua Landau <joshua.landau.ws@gmail.com> - 2013-06-29 21:02 +0100
          Re: Closures in leu of pointers? Michael Torrie <torriem@gmail.com> - 2013-06-29 16:02 -0600
      Re: Closures in leu of pointers? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-29 18:45 +0000
        Re: Closures in leu of pointers? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-29 19:00 +0000
        Re: Closures in leu of pointers? cts.private.yahoo@gmail.com - 2013-06-29 12:20 -0700
          Re: Closures in leu of pointers? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-29 19:33 +0000
            Re: Closures in leu of pointers? cts.private.yahoo@gmail.com - 2013-06-29 12:34 -0700
            Re: Closures in leu of pointers? Ian Kelly <ian.g.kelly@gmail.com> - 2013-06-29 13:47 -0600
            Re: Closures in leu of pointers? Terry Reedy <tjreedy@udel.edu> - 2013-06-29 16:53 -0400
              Re: Closures in leu of pointers? rusi <rustompmody@gmail.com> - 2013-06-30 01:56 -0700
                Re: Closures in leu of pointers? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-30 11:22 +0000
                Re: Closures in leu of pointers? rusi <rustompmody@gmail.com> - 2013-06-30 04:42 -0700
            Re: Closures in leu of pointers? Ian Kelly <ian.g.kelly@gmail.com> - 2013-06-29 15:21 -0600
              Re: Closures in leu of pointers? cts.private.yahoo@gmail.com - 2013-06-29 14:30 -0700
            Re: Closures in leu of pointers? Terry Reedy <tjreedy@udel.edu> - 2013-06-30 00:32 -0400
            Re: Closures in leu of pointers? Chris Angelico <rosuav@gmail.com> - 2013-06-30 15:08 +1000
              Re: Closures in leu of pointers? rusi <rustompmody@gmail.com> - 2013-06-30 00:36 -0700
            Re: Closures in leu of pointers? Ian Kelly <ian.g.kelly@gmail.com> - 2013-06-29 23:46 -0600
              Re: Closures in leu of pointers? alex23 <wuwei23@gmail.com> - 2013-07-01 14:57 +1000
              Re: Closures in leu of pointers? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-07-01 07:36 +0000
            Re: Closures in leu of pointers? Chris Angelico <rosuav@gmail.com> - 2013-06-30 15:59 +1000
            Re: Closures in leu of pointers? Terry Reedy <tjreedy@udel.edu> - 2013-06-30 02:11 -0400
            Re: Closures in leu of pointers? Ian Kelly <ian.g.kelly@gmail.com> - 2013-06-30 00:24 -0600
          Re: Closures in leu of pointers? Michael Torrie <torriem@gmail.com> - 2013-06-29 16:03 -0600
      Re: Closures in leu of pointers? Ian Kelly <ian.g.kelly@gmail.com> - 2013-06-29 13:23 -0600
      Re: Closures in leu of pointers? Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-06-30 12:07 +0200
      Re: Closures in leu of pointers? Ian Kelly <ian.g.kelly@gmail.com> - 2013-06-30 11:13 -0600
      Re: Closures in leu of pointers? Ian Kelly <ian.g.kelly@gmail.com> - 2013-06-30 11:18 -0600

csiph-web