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


Groups > comp.lang.python > #6632

Re: scope of function parameters

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.news-service.com!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <chris@rebertia.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'int': 0.05; 'names.': 0.07; 'python': 0.08; 'pearson': 0.09; 'subject:parameters': 0.09; '>>>': 0.12; 'def': 0.12; 'am,': 0.14; 'wrote:': 0.14; 'finney': 0.16; 'subject:function': 0.16; '\xc3\xa9crit': 0.16; 'cc:addr :python-list': 0.17; 'mon,': 0.17; 'cheers,': 0.19; 'header:In- Reply-To:1': 0.21; 'cc:2**0': 0.22; 'cc:no real name:2**0': 0.23; '(though': 0.23; 'objects': 0.23; 'missed': 0.26; 'object': 0.26; 'example': 0.27; 'message-id:@mail.gmail.com': 0.28; 'cc:addr:python.org': 0.30; "i've": 0.33; '...': 0.34; 'chris': 0.34; 'received:google.com': 0.37; 'something': 0.37; 'received:74.125': 0.38; 'could': 0.38; 'subject:: ': 0.38; 'here.': 0.69; 'skip:\xe2 10': 0.72; '30,': 0.84; '12:12': 0.84; 'sender:addr:chris': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=j2IifFJpxyw7kB4xK7ttQCzq9ANW9NCLtjGyUL7hf9o=; b=KiqU+O2/3MgzwAAfriGnuqMrt57738S1TNwM370O2XqRUQ5h1YdEtjGBQSGvjj9pKT SFmjsS7KisJ+t6V1ftRJIht4MXOqmPNq068bO4aRJwduEwoq8TGn2piosAMyoRRaFnDo JfYn2uqQjeZkalriyYtgDYmCsWBlOou7icl/o=
DomainKey-Signature a=rsa-sha1; c=nofws; d=rebertia.com; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=RGRh3dx7hEemTtdvUUajO7cqrAMKRVbpd3yePUcnKS8vFr5spuaOVoM6KnPFiG2OUU UkkYgeRQ8pQpNJGYeUYsKLjgGDtteH/1ek/Y8MkeQGX8iohuQ9AwpYRqUizTBwiExMy2 kaKt/cYgXALGvoG5Nlc5ARI+Wak3cdiSeae+I=
MIME-Version 1.0
Sender chris@rebertia.com
In-Reply-To <irvg1f$qb$1@news.univ-fcomte.fr>
References <mailman.2216.1306661462.9059.python-list@python.org> <94fdk7FihlU1@mid.individual.net> <87tycd89qc.fsf@benfinney.id.au> <irvg1f$qb$1@news.univ-fcomte.fr>
Date Mon, 30 May 2011 00:27:17 -0700
X-Google-Sender-Auth ncNM5E3-Klv94BJ6m8p5zf4xYi4
Subject Re: scope of function parameters
From Chris Rebert <clp2@rebertia.com>
To Laurent Claessens <moky.math@gmail.com>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
Cc python-list@python.org
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.2252.1306740446.9059.python-list@python.org> (permalink)
Lines 24
NNTP-Posting-Host 82.94.164.166
X-Trace 1306740446 news.xs4all.nl 49174 [::ffff:82.94.164.166]:57169
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:6632

Show key headers only | View raw


On Mon, May 30, 2011 at 12:12 AM, Laurent Claessens <moky.math@gmail.com> wrote:
> Le 29/05/2011 23:42, Ben Finney a écrit :
>> Peter Pearson<ppearson@nowhere.invalid>  writes:
>>
>>>  Python works in terms of objects having names, and one
>>>  object can have many names.
>>
>> Or no names. So it's less accurate (though better than talking of
>> “variables”) to speak of Python objects “having names”.
>
> Could you give an example of an object that has no name ? I've missed
> something ...

def foo():
    return 5

print(foo())

The int object 5 has no name here.

Cheers,
Chris

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


Thread

scope of function parameters Henry Olders <henry.olders@mcgill.ca> - 2011-05-29 04:30 -0400
  Re: scope of function parameters Mel <mwilson@the-wire.com> - 2011-05-29 07:59 -0400
    Re: scope of function parameters Terry Reedy <tjreedy@udel.edu> - 2011-05-29 16:27 -0400
  Re: scope of function parameters Peter Pearson <ppearson@nowhere.invalid> - 2011-05-29 17:21 +0000
    Re: scope of function parameters Ben Finney <ben+python@benfinney.id.au> - 2011-05-30 07:42 +1000
      Re: scope of function parameters Laurent Claessens <moky.math@gmail.com> - 2011-05-30 09:12 +0200
        Re: scope of function parameters Chris Rebert <clp2@rebertia.com> - 2011-05-30 00:27 -0700
        Re: scope of function parameters Laurent <moky.math@gmail.com> - 2011-05-30 09:38 +0200
        Re: scope of function parameters Daniel Kluev <dan.kluev@gmail.com> - 2011-05-30 19:10 +1100
        Re: scope of function parameters Terry Reedy <tjreedy@udel.edu> - 2011-05-30 05:02 -0400
          Re: scope of function parameters Laurent Claessens <moky.math@gmail.com> - 2011-05-30 11:08 +0200
            Re: scope of function parameters Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-05-30 09:14 +0000
            Re: scope of function parameters Ben Finney <ben+python@benfinney.id.au> - 2011-05-30 19:17 +1000
            Re: scope of function parameters Peter Otten <__peter__@web.de> - 2011-05-30 11:41 +0200
              Re: scope of function parameters Laurent Claessens <moky.math@gmail.com> - 2011-05-30 12:10 +0200
              Re: scope of function parameters Laurent Claessens <moky.math@gmail.com> - 2011-05-30 12:10 +0200
            Re: scope of function parameters Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2011-05-30 13:40 +0300
            Re: scope of function parameters Terry Reedy <tjreedy@udel.edu> - 2011-05-30 12:49 -0400
        Re: scope of function parameters Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-05-30 09:16 +0000
  Re: scope of function parameters Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-05-29 23:46 +0000
    Re: scope of function parameters Ben Finney <ben+python@benfinney.id.au> - 2011-05-30 11:31 +1000
      Re: scope of function parameters Chris Angelico <rosuav@gmail.com> - 2011-05-30 11:56 +1000
        Re: scope of function parameters Ben Finney <ben+python@benfinney.id.au> - 2011-05-30 12:08 +1000
          Re: scope of function parameters Chris Angelico <rosuav@gmail.com> - 2011-05-30 12:37 +1000
      Re: scope of function parameters Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-05-30 04:23 +0000
  Re: scope of function parameters rusi <rustompmody@gmail.com> - 2011-05-31 09:46 -0700
    Re: scope of function parameters rusi <rustompmody@gmail.com> - 2011-05-31 10:33 -0700

csiph-web