On Thu, Feb 17, 2011 at 06:40:27PM +0000, Michael Foord wrote:
> 
> 
> 2011/2/17 Arve Knudsen <[email protected]>
> 
>     2011/2/17 J rgen Hermann <[email protected]>
> 
>         > It has to? Why? For religious reasons?
> 
>         No. It's because you can easily turn off what you see, but it's hard 
> to
>         turn on what you don't see.
> 
> 
>     After programming a lot of C/C++, this is the first time I've heard anyone
>     complain that gcc (or any other compiler) isn't super strict by default.
>     How hard is it anyway to put -Wall in your CFLAGS??
> 
>     I definitely think it's better to let people enable especially strict
>     warnings if/when they see the need; besides, static checks aren't by any
>     stretch perfect, they can merely indicate possible code improvements.
>     Consider also that Python being a dynamic language makes it notoriously
>     difficult to get a tool like pylint right, meaning that there will be a
>     certain amount of false positives, which result in extra work for the
>     programmer and uglier code (pylint directives in comments). It's better 
> for
>     pylint not to be overly ambitious, considering it's a means to an end, not
>     an end in itself (to some of us anyway).
> 
> 
> 
> Right. The biggest reason I hear for not using pylint is how noisy it is by
> default and how hard to configure it to be useful it is.
> 
I think there's two different enhancement requests here with different merits:
How useful would pylint be if it complained as much or less than one of the
other tools (pychecker, pyflakes, etc) and was hard to configure to be more
strict?  Making pylint easier to configure would likely help no matter which
default existed.  OTOH, I think that pylint's niche right now is that it is
comprehensive.  I run pylint over my whole project every month or so to get
a comprehensive picture of my coding style and potential problems.
Meanwhile, I run pyflakes in a hook everytime my editor saves to save me
from errors that are easy and quick to check for.  Making pylint default to
a less noisy mode with the same level of hardness for configuring makes it
fit its particular niche less well.

-Toshio

Attachment: pgpLCxd5MlRQf.pgp
Description: PGP signature

_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to