Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed1.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.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; ';-)': 0.03; 'subject:Python': 0.06; '*not*': 0.07; 'dan': 0.09; 'cc:addr :python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'of)': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'feb': 0.22; 'code,': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'message- id:@mail.gmail.com': 0.30; 'clever': 0.31; 'received:google.com': 0.35; 'should': 0.36; 'pm,': 0.38; 'enough': 0.39; "you've": 0.63; 'obvious': 0.74; '2015': 0.84; 'subject:Practices': 0.84; 'to:none': 0.92 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:cc :content-type; bh=0e8TQqR9lrrU7QCCOGISnQJvayMN3SbF4qX2Nfkq5uQ=; b=gXTJGynN0cREiuUw1w1l7li7mEaK62eF/AnbgjNVRV+ULHexzQgM3vYn+9VM3z2eZS VJtdFwvwRWkC7IzMTMsbuUBIWuRy9uNiwLI7p/9/feeA8kHoyq0GNsaX0jXWrx2ULqgW h8MvsyZQiiNQOYbi04pN351b7LNenDnjuOuT4wrQ32motEv/JVJdUApeyo1N1jbvxUUS PI+G8guJB5WDCRs6e9FtMcC5puy9KnlgJfWs6/5HiP3QTryoeKumjag8rIoREXayai74 ZQZwNdUA9fvhehl4/r9pKMdBuMA9UP/cB3mb3YAo96yvCZ0bCax/gscgekviUTozCWzP Ir9A== MIME-Version: 1.0 X-Received: by 10.107.160.212 with SMTP id j203mr24267151ioe.43.1425113717125; Sat, 28 Feb 2015 00:55:17 -0800 (PST) In-Reply-To: References: <54f1154c$0$12985$c3e8da3$5496439d@news.astraweb.com> <54f161fd$0$12991$c3e8da3$5496439d@news.astraweb.com> Date: Sat, 28 Feb 2015 19:55:16 +1100 Subject: Re: Python Worst Practices From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1425113719 news.xs4all.nl 2858 [2001:888:2000:d::a6]:43168 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:86614 On Sat, Feb 28, 2015 at 6:50 PM, Dan Sommers wrote: > Now if only emacs were clever enough *not* to colorize "id" when it's > one of my names and not the builtin... ;-) I think (part of) the point of the colorization is to make it obvious that you've shadowed a builtin. If you use << str = 'spam' >> in your code, the str should be highlighted. ChrisA