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


Groups > comp.lang.python > #47623

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

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!rt.uk.eu.org!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.182
X-Spam-Level *
X-Spam-Evidence '*H*': 0.66; '*S*': 0.02; 'cc:addr:python-list': 0.11; 'keyword.': 0.16; 'sees': 0.16; 'variable': 0.18; 'cc:addr:python.org': 0.22; "shouldn't": 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'message-id:@mail.gmail.com': 0.30; 'file': 0.32; 'advice': 0.35; 'received:google.com': 0.35; 'keyword': 0.36; 'two': 0.37; 'list': 0.37; 'called': 0.40; 'skip:u 10': 0.60; 'most': 0.60; 'name': 0.63; 'choose': 0.64; 'further,': 0.74; 'subject:Don': 0.91; 'washington': 0.93
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 :cc:content-type; bh=9wLvtDzqoqgnGVmT1HKhHr7tlbqSgL7obD/mIrVBYm0=; b=YxqObmLVq9jD5sUyksVK3CpvaTqi5C5E3/28ACLbmaS40vUSIHFvI1yEARAcsF34am vFJuqoDiUZaYYzmic/hMOUkP0gk3zs1UUTciY/UP6VU3SdBhycthXvRDO5wrmttu06D+ 8k4lM17scevHNwZSsScEjL54BjB2fdQg/OT9a9ATv8shHjkp660fb0RVjThPxEMl5C/g XhVBSqTtbLdcFxUXRDkGNixkryf5YW0hVY3N0hK+JxLX1np7RS63ZS61Uj3VQgKdM+V/ svGhcM4hxxxUABciGJvvn9PzU8vT4uwRmkDT5joxZHHqDfSkOuLxEDi2CS1X99LW7dyt cdgg==
MIME-Version 1.0
X-Received by 10.194.24.225 with SMTP id x1mr6831336wjf.62.1370910058972; Mon, 10 Jun 2013 17:20:58 -0700 (PDT)
In-Reply-To <CAMjeLr8X_M+zp1zkSGV_wUTyv_e6XCbfhpTmzVzy2t5PuONEjQ@mail.gmail.com>
References <kp5q5o$fj1$1@ger.gmane.org> <CAMjeLr8X_M+zp1zkSGV_wUTyv_e6XCbfhpTmzVzy2t5PuONEjQ@mail.gmail.com>
Date Mon, 10 Jun 2013 17:20:58 -0700
Subject Re: "Don't rebind built-in names*" - it confuses readers
From Mark Janssen <dreamingforward@gmail.com>
To Terry Jan Reedy <tjreedy@udel.edu>
Content-Type text/plain; charset=ISO-8859-1
Cc python-list@python.org
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.3002.1370910429.3114.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1370910429 news.xs4all.nl 15901 [2001:888:2000:d::a6]:35731
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:47623

Show key headers only | View raw


>>         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.

Btw,  shouldn't it be illegal anyway?  Most compilers don't let you do
use a keyword as a variable name....

-- 
MarkJ
Tacoma, Washington

Back to comp.lang.python | Previous | NextNext 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:20 -0700
  Re: "Don't rebind built-in names*" - it confuses readers Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-11 02:53 +0000
  Re: "Don't rebind built-in names*" - it confuses readers Grant Edwards <invalid@invalid.invalid> - 2013-06-11 16:23 +0000

csiph-web