Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!newsfeed.xs4all.nl!newsfeed3a.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'static': 0.04; 'messages.': 0.05; 'subject:code': 0.07; 'explanation': 0.09; 'feature,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'undefined': 0.09; 'warn': 0.09; 'finney': 0.16; 'magic': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:analysis': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'received:comcast.net': 0.24; "i've": 0.25; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'feature': 0.29; 'asked': 0.31; 'code': 0.31; 'agreed.': 0.31; 'writes:': 0.31; 'subject:from': 0.34; "can't": 0.35; 'useful': 0.36; 'ben': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'anything': 0.39; 'heard': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; "you've": 0.63; 'more': 0.64; 'wish': 0.70; 'batchelder': 0.84; 'language!': 0.84; 'was:': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ned Batchelder Subject: Re: Messages from code analysis tools Date: Sun, 16 Nov 2014 20:49:58 -0500 References: <54693cc4$0$13000$c3e8da3$5496439d@news.astraweb.com> <85h9xy39ml.fsf_-_@benfinney.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: c-50-133-228-126.hsd1.ma.comcast.net User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: <85h9xy39ml.fsf_-_@benfinney.id.au> 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: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1416189002 news.xs4all.nl 2915 [2001:888:2000:d::a6]:50244 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:80948 On 11/16/14 8:21 PM, Ben Finney wrote: > Ned Batchelder writes: > >> Pylint isn't useful until you've tailored the messages. > > Definitely agreed. > >> The pylint message that always irked me was: >> >> W0142: Used * or ** magic >> >> "magic"? They're features of the language! > > It's a warning, because the use of that feature clobbers the static code > inspection you've asked for. PyLint is warning you “because the code > uses this feature, I can't say anything about undefined names”. > That's the best explanation I've heard for why they warn about it. I wish they would find a more sophisticated word than "magic". -- Ned Batchelder, http://nedbatchelder.com