Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.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.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'bug': 0.02; 'subject:when': 0.07; 'am,': 0.12; '16,': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:builtin': 0.16; 'wrote:': 0.16; 'issue.': 0.19; 'header :In-Reply-To:1': 0.22; 'tue,': 0.23; 'aug': 0.24; 'sorry,': 0.29; 'message-id:@mail.gmail.com': 0.29; 'feature,': 0.30; 'subject:?': 0.31; 'usual': 0.31; 'chris': 0.32; 'actually': 0.33; 'to:addr :python-list': 0.33; 'steven': 0.38; 'received:google.com': 0.38; 'received:209.85': 0.38; 'easier': 0.38; 'subject:: ': 0.39; 'why': 0.39; 'to:addr:python.org': 0.39; "it's": 0.40; 'harder': 0.64; 'masking,': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=MjavgL8cUkDtUDHQGb2lJ+KxnpXwlkMSla+Eu1CYN4E=; b=iQQ4eccXn3KcjN3RBesqA5wpr6h49ujMRmy6RPWm1CxFjhuWry8a4y5dcN8oKyrKwP mtaF47YJuDG87scoPpyr1Bpu1ZGxj6q9WMID1B4aEs7z8U+slxqOyXGVdjxcEOM4zwNf eEpRx5x7W0PNpZxvPtXeIo8fl2ve0UKNLpEmk= MIME-Version: 1.0 In-Reply-To: <4e49c89a$0$30001$c3e8da3$5496439d@news.astraweb.com> References: <4e49c89a$0$30001$c3e8da3$5496439d@news.astraweb.com> Date: Tue, 16 Aug 2011 09:16:51 +0100 Subject: Re: Why no warnings when re-assigning builtin names? From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 1313482614 news.xs4all.nl 23961 [2001:888:2000:d::a6]:39503 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:11527 On Tue, Aug 16, 2011 at 2:32 AM, Steven D'Aprano wrote: > On Tue, 16 Aug 2011 08:15 am Chris Angelico wrote: > >> It's actually masking, not reassigning. That may make it easier or >> harder to resolve the issue. > > The usual term is "shadowing builtins", and it's a feature, not a bug :) Sorry, shadowing. And yeah, that's why I said that "fixing" this "issue" was the domain of linting scripts. ChrisA