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: 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: References: Date: Wed, 12 Jun 2013 12:40:30 -0700 Subject: Re: "Don't rebind built-in names*" - it confuses readers From: Mark Janssen To: Python List 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Wed, Jun 12, 2013 at 7:24 AM, Grant Edwards wrote: > On 2013-06-11, Mark Janssen 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