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


Groups > comp.lang.python > #80942

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

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!bcyclone05.am1.xlned.com!bcyclone05.am1.xlned.com!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.015
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'static': 0.04; 'messages.': 0.05; 'subject:code': 0.07; '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; 'finney': 0.16; 'magic': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:analysis': 0.16; 'header:User-Agent:1': 0.23; 'header:X-Complaints-To:1': 0.27; 'feature': 0.29; 'asked': 0.31; 'code': 0.31; 'agreed.': 0.31; 'writes:': 0.31; 'subject:from': 0.34; 'subject: (': 0.35; "can't": 0.35; 'useful': 0.36; 'wrong': 0.37; 'too': 0.37; 'ben': 0.38; 'to:addr:python-list': 0.38; 'anything': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'future': 0.60; "you've": 0.63; 'batchelder': 0.84; 'fast,': 0.84; 'language!': 0.84; 'received:125': 0.84; 'subject:Using': 0.84; 'was:': 0.91; '\xe2\x80\x9cthe': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Ben Finney <ben+python@benfinney.id.au>
Subject Messages from code analysis tools (was: Using map())
Date Mon, 17 Nov 2014 12:21:06 +1100
References <mailman.15896.1416169228.18130.python-list@python.org> <54693cc4$0$13000$c3e8da3$5496439d@news.astraweb.com> <m4bf84$pg3$1@ger.gmane.org>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Gmane-NNTP-Posting-Host jigong.madmonks.org
X-Public-Key-ID 0xAC128405
X-Public-Key-Fingerprint 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405
X-Public-Key-URL http://www.benfinney.id.au/contact/bfinney-pubkey.asc
X-Post-From Ben Finney <bignose+hates-spam@benfinney.id.au>
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)
Cancel-Lock sha1:1wKU+HbfB3uX4KgTKm2ZKLjWViw=
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.15931.1416187280.18130.python-list@python.org> (permalink)
Lines 22
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1416187280 news.xs4all.nl 2840 [2001:888:2000:d::a6]:60312
X-Complaints-To abuse@xs4all.nl
X-Received-Bytes 3732
X-Received-Body-CRC 2796654698
Xref csiph.com comp.lang.python:80942

Show key headers only | View raw


Ned Batchelder <ned@nedbatchelder.com> 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”.

-- 
 \       “The future always arrives too fast, and in the wrong order.” |
  `\                                                    —Alvin Toffler |
_o__)                                                                  |
Ben Finney

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