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


Groups > comp.lang.python > #47833

Re: "Don't rebind built-in names*" - it confuses readers

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <dreamingforward@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.174
X-Spam-Level *
X-Spam-Evidence '*H*': 0.70; '*S*': 0.05; 'compiler': 0.07; 'janssen': 0.16; 'keyword.': 0.16; 'sees': 0.16; 'to:name:python list': 0.16; 'wrote:': 0.18; 'variable': 0.18; 'wed,': 0.18; '>>>': 0.22; 'right.': 0.26; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'file': 0.32; "can't": 0.35; 'advice': 0.35; 'received:google.com': 0.35; 'two': 0.37; 'list': 0.37; 'being': 0.38; 'to:addr:python-list': 0.38; '12,': 0.39; 'to:addr:python.org': 0.39; 'called': 0.40; 'skip:u 10': 0.60; "you're": 0.61; 'name': 0.63; 'choose': 0.64; 'further,': 0.74; 'edwards': 0.91; 'subject:Don': 0.91; 'washington': 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:date:message-id:subject:from:to :content-type; bh=1eY7BeIpe9dNQRT0DPFS1nakyOucsMinPo026o0lxnQ=; b=DnDRu9hqlhTWHJGDNYLCXxpB7/zHDjSVmRubZsfnHN5ogk8sQe6t/qnDaXfAZCJfaP 8QgrYS3faZqVh1Qc0UqsgZdtJMqIeSGjmsmBMyQX33XbNsBcyr3iFwCz2UGJAWljAU1k bfMLVLdGlSjpY/JNK3I1s3tSeXNsEkzw7a53zW/UMvIDe9ia+34stMIABa97VsUvX3cM n9uWe+TXX+l3MmLjlOPTv+mac4xqn2I3Wicpf+F9oW+huwpexM0/QYlEPkNRMAGEvR3t ugzhPyV3QGoR2gF3pfJ8uqgPtRCcw6aa4DFCXdk9bgAJz9gicw2CoBkt7/sOzpGC2Ne7 boyg==
MIME-Version 1.0
X-Received by 10.180.210.225 with SMTP id mx1mr5496143wic.15.1371066030511; Wed, 12 Jun 2013 12:40:30 -0700 (PDT)
In-Reply-To <kpa0ae$b4t$1@reader1.panix.com>
References <kp5q5o$fj1$1@ger.gmane.org> <mailman.3096.1371040064.3114.python-list@python.org> <kpa0ae$b4t$1@reader1.panix.com>
Date Wed, 12 Jun 2013 12:40:30 -0700
Subject Re: "Don't rebind built-in names*" - it confuses readers
From Mark Janssen <dreamingforward@gmail.com>
To Python List <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.3121.1371066032.3114.python-list@python.org> (permalink)
Lines 18
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1371066032 news.xs4all.nl 15988 [2001:888:2000:d::a6]:45849
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:47833

Show key headers only | View raw


On Wed, Jun 12, 2013 at 7:24 AM, Grant Edwards <invalid@invalid.invalid> wrote:
> On 2013-06-11, Mark Janssen <dreamingforward@gmail.com> wrote:
>>>         list = []
>>> Reading further, one sees that the function works with two lists, a list of
>>> file names, unfortunately called 'list',
>>
>> That is very good advice in general:  never choose a variable name
>> that is a keyword.
>
> You can't choose a vriable name that is a keyword: the compiler won't
> allow it.
>
> "list" isn't a keyword.

You're right.  I was being sloppy.
-- 
MarkJ
Tacoma, Washington

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


Thread

Re: "Don't rebind built-in names*" - it confuses readers Mark Janssen <dreamingforward@gmail.com> - 2013-06-10 17:18 -0700
  Re: "Don't rebind built-in names*" - it confuses readers Grant Edwards <invalid@invalid.invalid> - 2013-06-12 14:24 +0000
    Re: "Don't rebind built-in names*" - it confuses readers Mark Janssen <dreamingforward@gmail.com> - 2013-06-12 12:40 -0700
    Re: "Don't rebind built-in names*" - it confuses readers Chris Angelico <rosuav@gmail.com> - 2013-06-13 06:30 +1000
    Re: "Don't rebind built-in names*" - it confuses readers Mark Janssen <dreamingforward@gmail.com> - 2013-06-12 16:07 -0700
    Re: "Don't rebind built-in names*" - it confuses readers Chris Angelico <rosuav@gmail.com> - 2013-06-13 09:53 +1000
      Re: "Don't rebind built-in names*" - it confuses readers Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-13 00:47 +0000
    Re: "Don't rebind built-in names*" - it confuses readers Skip Montanaro <skip@pobox.com> - 2013-06-12 19:06 -0500
    Re: "Don't rebind built-in names*" - it confuses readers Mark Janssen <dreamingforward@gmail.com> - 2013-06-12 17:26 -0700
      Re: "Don't rebind built-in names*" - it confuses readers Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-13 01:23 +0000
        Re: "Don't rebind built-in names*" - it confuses readers Nobody <nobody@nowhere.com> - 2013-06-13 11:09 +0100
    Re: "Don't rebind built-in names*" - it confuses readers Chris Angelico <rosuav@gmail.com> - 2013-06-13 10:28 +1000

csiph-web