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: 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: References: Date: Mon, 10 Jun 2013 17:20:58 -0700 Subject: Re: "Don't rebind built-in names*" - it confuses readers From: Mark Janssen To: Terry Jan Reedy 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 >> 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