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


Groups > comp.lang.python > #108293 > unrolled thread

Re: Pylint prefers list comprehension over filter...

Started byChristopher Reimer <christopher_reimer@icloud.com>
First post2016-05-07 12:17 -0700
Last post2016-05-07 14:36 -0700
Articles 3 — 2 participants

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Pylint prefers list comprehension over filter... Christopher Reimer <christopher_reimer@icloud.com> - 2016-05-07 12:17 -0700
    Re: Pylint prefers list comprehension over filter... Marko Rauhamaa <marko@pacujo.net> - 2016-05-07 23:31 +0300
      Re: Pylint prefers list comprehension over filter... Christopher Reimer <christopher_reimer@icloud.com> - 2016-05-07 14:36 -0700

#108293 — Re: Pylint prefers list comprehension over filter...

FromChristopher Reimer <christopher_reimer@icloud.com>
Date2016-05-07 12:17 -0700
SubjectRe: Pylint prefers list comprehension over filter...
Message-ID<mailman.471.1462652269.32212.python-list@python.org>
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.

[toc] | [next] | [standalone]


#108295

FromMarko Rauhamaa <marko@pacujo.net>
Date2016-05-07 23:31 +0300
Message-ID<87vb2phap4.fsf@elektro.pacujo.net>
In reply to#108293
Christopher Reimer <christopher_reimer@icloud.com>:
> Never know when an asshat hiring manager would reject my resume out of
> hand because my code fell short with pylint.

Remember that it's not only the company checking you out but also you
checking the company out.

Would you want to work for an asshat hiring manager?

Of course, you might not have the luxury of being picky.


Marko

[toc] | [prev] | [next] | [standalone]


#108306

FromChristopher Reimer <christopher_reimer@icloud.com>
Date2016-05-07 14:36 -0700
Message-ID<mailman.481.1462661826.32212.python-list@python.org>
In reply to#108295
On 5/7/2016 1:31 PM, Marko Rauhamaa wrote:
> Christopher Reimer <christopher_reimer@icloud.com>:
>> Never know when an asshat hiring manager would reject my resume out of
>> hand because my code fell short with pylint.
> Remember that it's not only the company checking you out but also you
> checking the company out.
>
> Would you want to work for an asshat hiring manager?
>
> Of course, you might not have the luxury of being picky.

Most asshat managers I've dealt with often say to me, "Here's a mole 
hole, go fix it." I look at the mole hole (little problem), look at the 
mountain (big problem) in the distant, and jump over the mole hole to 
start climbing the mountain. After I reduce the mountain to a mole hole, 
the asshat manager gets promoted and I'm looking for a job again.

Thank you,

Chris R.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web