Messages from code analysis tools

Ned Batchelder ned at nedbatchelder.com
Sun Nov 16 20:49:58 EST 2014


On 11/16/14 8:21 PM, Ben Finney wrote:
> Ned Batchelder <ned at nedbatchelder.com> writes:
>
>> Pylint isn't useful until you've tailored the messages.
>
> Definitely agreed.
>
>> The pylint message that always irked me was:
>>
>>      W0142: Used * or ** magic
>>
>> "magic"? They're features of the language!
>
> It's a warning, because the use of that feature clobbers the static code
> inspection you've asked for. PyLint is warning you “because the code
> uses this feature, I can't say anything about undefined names”.
>

That's the best explanation I've heard for why they warn about it.  I 
wish they would find a more sophisticated word than "magic".

-- 
Ned Batchelder, http://nedbatchelder.com




More information about the Python-list mailing list