Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #108305
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Radek Holý <Radek1@holych.org> |
| Newsgroups | comp.lang.python |
| Subject | Re: Pylint prefers list comprehension over filter... |
| Date | Sun, 8 May 2016 00:04:36 +0200 |
| Lines | 34 |
| Message-ID | <mailman.480.1462658686.32212.python-list@python.org> (permalink) |
| References | <572BF2BF.6000000@icloud.com> <1462498631.232041.599637409.25D91C08@webmail.messagingengine.com> <572E3F53.5010703@icloud.com> <CAPtibM4qi7Ggm3GNOKerk7YoX6x8DRNzRXvXDRfMSm8sUxUB2g@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de BxZqRIMHsGJvJgB2+NOhoQxvl0yxTptOXOncukk3w+fg== |
| Return-Path | <Radek1@holych.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.024 |
| X-Spam-Evidence | '*H*': 0.95; '*S*': 0.00; 'reject': 0.05; 'repository': 0.05; 'subject:skip:c 10': 0.07; 'thu,': 0.15; 'happy.': 0.16; 'pythonic': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; "shouldn't": 0.18; '>>>': 0.20; 'first,': 0.20; 'disable': 0.22; 'stephen': 0.22; 'header :In-Reply-To:1': 0.24; 'subject:list': 0.26; 'chris': 0.26; 'message-id:@mail.gmail.com': 0.27; 'correct': 0.28; "i'm": 0.30; 'url:mailman': 0.30; 'code': 0.30; '(i.e.,': 0.30; 'options': 0.33; 'url:python': 0.33; 'purposes,': 0.33; 'url:listinfo': 0.34; 'file': 0.34; 'list': 0.34; 'received:google.com': 0.35; 'filter': 0.35; 'url:org': 0.36; 'possible.': 0.36; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'hiring': 0.37; '(with': 0.38; 'received:209': 0.38; 'thank': 0.38; 'received:209.85.220': 0.38; 'means': 0.39; 'does': 0.39; 'url:mail': 0.40; 'to:addr:python.org': 0.40; 'some': 0.40; 'forget': 0.60; 'default': 0.61; 'engine': 0.62; 'hand': 0.82; '"yes,': 0.84; 'subject:over': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=holych-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=CCkr+zcbh3FJ9CqqmO9T0u6/Hxz/5hxkE6btjzgtu14=; b=OLvkWAbTYBF99vEw3dS9W96UCPBtOEzVyXwmtJNg5wvZuuZqPOYRavVqx90gSNdXVI mTB5+bdgJk6WHaYPsijtMVGwiq2PCvZE6jFfjjPrbkZoYQG580ZmxPSQwrSmwL3+7flL OftLce5E/tRtlB9/tErpsbDdSM6ky+OjK/bGBTi7RWDVr7/Lm8dGmSb8DTHQzSgXZiVT nuPmjDuELVTvRlBIIME58MlkmKEhVOjuvVY+Hek7GJZV8gMFqrf8yW0UpPMwplavByRW lF8g0RPWV9U5SabUZDO3la7M3QHNWjeyfw/5u9v2XVKoDUJd9qMGZ2XxwgZHve+/nHEh tRlw== |
| 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:to; bh=CCkr+zcbh3FJ9CqqmO9T0u6/Hxz/5hxkE6btjzgtu14=; b=ZfDQMcmFn789bASLbOHy+8MiIMwsF1Yq1bmBM6h2q/J8HwWVTNkKteCEEpXN+b/08y NnMCa95XCEFfGvhIFDQSeCJEMxph9cAPfPYo2nVQ+yHNetAlFdwtww3zO3sERAdN8+ye 2xYZIKaNkju3RCdcERLCB0aZSfNlJ1hrMyasaOJDCzyjPcP+vJRKRsC/llcW6pmbNrrp HUaFi4qzC5zPoLddFR597hYRn1jQu6w7LQtuosh40pycA+9YVIE3G0/FuglmpaewhC0f I9gmDfMWC+dsdGQXd9ZI8hEBG6poWnYWkFyrBEjpdppQJhCFCmlcOwUIOk9b+dl6h8iq COKA== |
| X-Gm-Message-State | AOPr4FWiTGXfYBvVEuQ/tXdgu2Y/6GI0njIvrq8eU/VmCNMU1TIvAZe1wsyD5pPXL7MUtt0A4qh+LaCPjUy6Wg== |
| X-Received | by 10.66.65.235 with SMTP id a11mr38651747pat.155.1462658676752; Sat, 07 May 2016 15:04:36 -0700 (PDT) |
| X-Originating-IP | [37.188.140.185] |
| In-Reply-To | <572E3F53.5010703@icloud.com> |
| X-Content-Filtered-By | Mailman/MimeDel 2.1.22 |
| 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 | <CAPtibM4qi7Ggm3GNOKerk7YoX6x8DRNzRXvXDRfMSm8sUxUB2g@mail.gmail.com> |
| X-Mailman-Original-References | <572BF2BF.6000000@icloud.com> <1462498631.232041.599637409.25D91C08@webmail.messagingengine.com> <572E3F53.5010703@icloud.com> |
| Xref | csiph.com comp.lang.python:108305 |
Show key headers only | View raw
2016-05-07 21:17 GMT+02:00 Christopher Reimer <christopher_reimer@icloud.com >: > On 5/5/2016 6:37 PM, Stephen Hansen wrote: > >> On Thu, May 5, 2016, at 06:26 PM, Christopher Reimer wrote: >> >>> Which is one is correct (Pythonic)? Or does it matter? >>> >> First, pylint is somewhat opinionated, and its default options shouldn't >> be taken as gospel. There's no correct: filter is fine. >> > > Since the code I'm working on is resume fodder (i.e., "Yes, I code in > Python! Check out my chess engine code on GitHub!"), I want it to be as > Pythonic and PEP8-compliant as possible. That includes scoring 10/10 with > pylint. Never know when an asshat hiring manager would reject my resume out > of hand because my code fell short with pylint. > > For my purposes, I'm using the list comprehension over filter to keep > pylint happy. > > > Thank you, > > Chris R. > -- > https://mail.python.org/mailman/listinfo/python-list > Don't forget that you can also place a pylintrc file (with some reasonable comments) into the repository or use the other means to disable selected rules....
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Pylint prefers list comprehension over filter... Radek Holý <Radek1@holych.org> - 2016-05-08 00:04 +0200
csiph-web