Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #80947

Re: Messages from code analysis tools (was: Using map())

Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.005
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'static': 0.04; 'warnings': 0.04; 'subject:code': 0.07; 'feature,': 0.09; 'undefined': 0.09; 'cc:addr:python-list': 0.11; 'check.': 0.16; 'finney': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'magic': 0.16; 'ought': 0.16; 'subject:analysis': 0.16; 'wrote:': 0.18; 'code,': 0.22; 'saying': 0.22; 'cc:addr:python.org': 0.22; 'mon,': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'feature': 0.29; 'ignored.': 0.30; 'message-id:@mail.gmail.com': 0.30; 'asked': 0.31; 'code': 0.31; 'subject:from': 0.34; 'problem': 0.35; 'subject: (': 0.35; "can't": 0.35; 'received:google.com': 0.35; 'surely': 0.36; 'should': 0.36; 'ben': 0.38; 'nov': 0.38; 'pm,': 0.38; 'that,': 0.38; 'anything': 0.39; 'either': 0.39; "you've": 0.63; 'language!': 0.84; 'subject:Using': 0.84; 'was:': 0.91; '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:content-transfer-encoding; bh=C9MFM727vGU3QuQS+ekvfs6NcJwsyBjvqvA+1rAJcEs=; b=txhayUwKslecp8Xw0g74URrEw9pn0nh2s5YHG42bXLQquF3BoAmICJbKRgahe/5Tk1 14RRDXRVR6Gj+aT9np1eNJ5qVUrSf8iTAQ4z1ABKue29sCLcR/aTgIGXqC2HLAqBg6D6 jFdDqNq/NyRJaOvHGmanlqUJmO+51Uzp71jx3T7Jr4C4FMKtf+0DEbBTeQD2mRq0eFyB DjUgujM6wc1rNPLn/xuSImYdd49ZqmZLUFr0JzdK+Wzky7HTq2UhewwBHXTz08qf+SDy myX4+yOokOUJPlTPuCsiAeVoYfk9K2Mn/J0/9ynADOuoyNXaiSlgWpUlISygVVTlKrXm ssUg==
MIME-Version 1.0
X-Received by 10.50.110.4 with SMTP id hw4mr22564184igb.14.1416188219646; Sun, 16 Nov 2014 17:36:59 -0800 (PST)
In-Reply-To <85h9xy39ml.fsf_-_@benfinney.id.au>
References <mailman.15896.1416169228.18130.python-list@python.org> <54693cc4$0$13000$c3e8da3$5496439d@news.astraweb.com> <m4bf84$pg3$1@ger.gmane.org> <85h9xy39ml.fsf_-_@benfinney.id.au>
Date Mon, 17 Nov 2014 12:36:59 +1100
Subject Re: Messages from code analysis tools (was: Using map())
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.15936.1416188222.18130.python-list@python.org> (permalink)
Lines 20
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1416188222 news.xs4all.nl 2892 [2001:888:2000:d::a6]:46956
X-Complaints-To abuse@xs4all.nl
Path csiph.com!usenet.pasdenom.info!bete-des-vosges.org!feed.ac-versailles.fr!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Xref csiph.com comp.lang.python:80947

Show key headers only | View raw


On Mon, Nov 17, 2014 at 12:21 PM, Ben Finney <ben+python@benfinney.id.au> wrote:
>> 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”.

Then that ought surely to be an informational? It's not saying there's
a problem in your code, it's pointing out that it can't check.

Either that, or warnings from PyLint are all low-grade and should be ignored.

ChrisA

Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Using map() Pavel Volkov <sailor@lists.xtsubasa.org> - 2014-11-16 16:01 +0300
  Re: Using map() Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-11-17 11:09 +1100
    Re: Using map() Ned Batchelder <ned@nedbatchelder.com> - 2014-11-16 19:24 -0500
    Re: Using map() Chris Angelico <rosuav@gmail.com> - 2014-11-17 12:08 +1100
    Messages from code analysis tools (was: Using map()) Ben Finney <ben+python@benfinney.id.au> - 2014-11-17 12:21 +1100
    Re: Using map() Dan Stromberg <drsalists@gmail.com> - 2014-11-16 17:31 -0800
    Re: Messages from code analysis tools (was: Using map()) Chris Angelico <rosuav@gmail.com> - 2014-11-17 12:36 +1100
    Re: Messages from code analysis tools Ned Batchelder <ned@nedbatchelder.com> - 2014-11-16 20:49 -0500

csiph-web