Pylint prefers list comprehension over filter...

Steven D'Aprano steve at pearwood.info
Tue May 10 10:58:22 EDT 2016


Hi Claudiu,


On Tue, 10 May 2016 11:51 pm, Claudiu Popa wrote:

> Thank you for letting us know. While pylint is indeed
> opinionated in some cases, we're not trying to be
> "arrogant", as you put it, towards Guido or the other core
> developers. What's sad in this particular case is that the
> feedback had to come in rather a harsh manner, on this group,
> instead of being reported as a bug or an enhancement on pylint's
> bug tracker.
>
> Anyway, I wanted to tell you that I agree with your opinion
> regarding that message and as such, it is removed and won't be
> emitted anymore in the next release (1.6)

Thanks for being so understanding!

Speaking for myself, I think that the test for filter versus list
comprehensions is a reasonable test to include, so long as it is disabled
by default. Does PyLint support opt-in checks?



-- 
Steven




More information about the Python-list mailing list