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


Groups > comp.lang.python > #108488

Re: Pylint prefers list comprehension over filter...

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: Pylint prefers list comprehension over filter...
Date Wed, 11 May 2016 06:22:46 +1000
Lines 28
Message-ID <mailman.576.1462911768.32212.python-list@python.org> (permalink)
References <572BF2BF.6000000@icloud.com> <1462498631.232041.599637409.25D91C08@webmail.messagingengine.com> <572E3F53.5010703@icloud.com> <ngm5em$jnn$1@ger.gmane.org> <mailman.489.1462671648.32212.python-list@python.org> <e309810a-d9a7-42b9-8e9f-14b8c03ab482@googlegroups.com> <5731f70f$0$1590$c3e8da3$5496439d@news.astraweb.com> <f1ca2718-6178-4fa7-9b67-ca697ae9ed43@googlegroups.com> <CAPTjJmrWZUpNauJUoforKUwm5qQ0G1_j-W_WikWZaFyzdTjczg@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de KeKpQKIVhJibyyZBcVXJrw2O4zxplwshXm6WAGUNlrHw==
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'enabled.': 0.07; 'subject:skip:c 10': 0.07; 'cc:addr:python-list': 0.09; 'wed,': 0.15; '2016': 0.16; 'core"': 0.16; 'core.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'refactoring': 0.16; 'sense,': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'all:': 0.22; 'minor': 0.22; 'trying': 0.22; 'am,': 0.23; 'split': 0.23; 'header:In-Reply-To:1': 0.24; 'subject:list': 0.26; 'message-id:@mail.gmail.com': 0.27; 'clean.': 0.29; "we're": 0.30; 'checks': 0.30; 'core': 0.32; 'skip:- 10': 0.34; 'running': 0.34; 'received:google.com': 0.35; 'but': 0.36; 'received:209.85': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'sure': 0.39; 'chrisa': 0.84; 'subject:over': 0.84; 'to:none': 0.91
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; bh=tm+3/7ZdhdIqnb2hVPifo8pOUWTTK3N708bIyyQSAsY=; b=Ht7V6OHMu5k4XkP0P5yqsZ10JYdgqdh2wMWuGpz8NYPXF3het5RJC8bwJ+tmoGjQXd YeY17FQz2+/xvxxEWqPMAX9g66z4Re7XRA0PAxPmACGN2ihyMnzqSP7UjXJr+SpqaMef GutncQn2pKGhfklRTPY9IpmkuQkd3NOh7VX+EY1Wb+uql2XREB/NKr8fHILQvJ3pteTw SV+bghNmWt2RZC+GTWO4/UqhENrQYN7nza1dLnqfSm0enNpwsyyfKlGj17BHkRUCYW5A KTZxZJ6bKE6uYbZmc4p01xa+FFfxEHpr2BM9KWgyrmaR/P9A3ddXJZ6AwSjX7dhSkIWU l/vg==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc; bh=tm+3/7ZdhdIqnb2hVPifo8pOUWTTK3N708bIyyQSAsY=; b=cnAGIckUw4voQU2Si1xgByaWNP9fFFVmljeo/SbXIWsY/6XVTVowGALU2Ww/njVqIK L2VshgcOBNttmjx13K8zgVk8yjYhjvOmaxvdg3S8KBN2T359eBghV6dLih9MuxNmzAT/ yhb350cFtitdjJndLatrKZ3SyFUZM/bQogZ9ilhCgHvnxP1QLSgwOowdjqJnqke1jkXO kFOTr++e8F+XuRTpaba5qiDBI177R39F1u90EwDsevfTiH3Lg4YivXZbnqqdeIZlsB3c 2FBci4EGCmzEOpETuKiITbQWWGQ1I6ByQa1kg0I0sGouzK6/NdERZ8cddPl+HuY/UTfU 2+mw==
X-Gm-Message-State AOPr4FVj6/NubtmOBYi5pbIE+fWszmdMNJIqFaxaOg3oNANRQaNaIHpPU4folYLImRmmezpDRlspYIZxp6CnLw==
X-Received by 10.112.72.193 with SMTP id f1mr17915546lbv.114.1462911766950; Tue, 10 May 2016 13:22:46 -0700 (PDT)
In-Reply-To <f1ca2718-6178-4fa7-9b67-ca697ae9ed43@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.22
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>
X-Mailman-Original-Message-ID <CAPTjJmrWZUpNauJUoforKUwm5qQ0G1_j-W_WikWZaFyzdTjczg@mail.gmail.com>
X-Mailman-Original-References <572BF2BF.6000000@icloud.com> <1462498631.232041.599637409.25D91C08@webmail.messagingengine.com> <572E3F53.5010703@icloud.com> <ngm5em$jnn$1@ger.gmane.org> <mailman.489.1462671648.32212.python-list@python.org> <e309810a-d9a7-42b9-8e9f-14b8c03ab482@googlegroups.com> <5731f70f$0$1590$c3e8da3$5496439d@news.astraweb.com> <f1ca2718-6178-4fa7-9b67-ca697ae9ed43@googlegroups.com>
Xref csiph.com comp.lang.python:108488

Show key headers only | View raw


On Wed, May 11, 2016 at 1:35 AM,  <pcmanticore@gmail.com> wrote:
> Basically, pylint overwhelms the user
> right now with its enabled checks and we're trying to split these
> into tiers, as seen in the following:
>
>     $ pylint myproject
>     # core checkers enabled
>     10/10 - Congrats, you're clean on a core. You might try with "--pedantic" now.
>
>     $ pylint myproject --pedantic
>     # pedantic checkers enabled.
>     10/10 - Congrats, you're clean on pedantic. You might try with --refactoring now
>
>     $ pylint myproject --refactoring
>     # refactoring checkers enabled
>     10/10 - Congrats, you're clean on refactoring. Last up, try with --style now.
>
>     $ pylint myproject --style
>     10/10 - Now you're pylint clean.
>
>     Or running them all:
>
>     $ pylint myproject --all

Definitely support this notion. Not sure the "on a core" part makes
sense, but that's a minor triviality.

ChrisA

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


Thread

Re: Pylint prefers list comprehension over filter... Terry Reedy <tjreedy@udel.edu> - 2016-05-07 21:40 -0400
  Re: Pylint prefers list comprehension over filter... Claudiu Popa <pcmanticore@gmail.com> - 2016-05-10 06:51 -0700
    Re: Pylint prefers list comprehension over filter... Steven D'Aprano <steve@pearwood.info> - 2016-05-11 00:58 +1000
      Re: Pylint prefers list comprehension over filter... pcmanticore@gmail.com - 2016-05-10 08:35 -0700
        Re: Pylint prefers list comprehension over filter... Terry Reedy <tjreedy@udel.edu> - 2016-05-10 15:47 -0400
        Re: Pylint prefers list comprehension over filter... Chris Angelico <rosuav@gmail.com> - 2016-05-11 06:22 +1000
    Re: Pylint prefers list comprehension over filter... Steven D'Aprano <steve@pearwood.info> - 2016-05-11 01:20 +1000
    Re: Pylint prefers list comprehension over filter... Terry Reedy <tjreedy@udel.edu> - 2016-05-10 15:34 -0400
      Re: Pylint prefers list comprehension over filter... DFS <nospam@dfs.com> - 2016-05-10 16:42 -0400

csiph-web