Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #108487
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Pylint prefers list comprehension over filter... |
| Date | 2016-05-10 15:47 -0400 |
| Message-ID | <mailman.575.1462909641.32212.python-list@python.org> (permalink) |
| References | (4 earlier) <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> <ngtdru$cpq$1@ger.gmane.org> |
On 5/10/2016 11:35 AM, pcmanticore@gmail.com wrote: > The bad-builtin check is now an extension, so using the first case > would enable it. The 'old' (not 'bad') builtin check should include using map instead of a comprehension. The check should also pay attention to whether the function argument is an existing function or a one newly created with a lambda expression. "'lambda' in <argument expression>" I think filter(None, iterable) (== filter(bool, iterable)) should be separately flagged as a style point. It is a hack that became unneeded when bool was added. > Another thing that is going to change with the next release is > the introduction of tiers. 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: This looks good. -- Terry Jan Reedy
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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