Messages from code analysis tools (was: Using map())

Chris Angelico rosuav at gmail.com
Mon Nov 17 02:36:59 CET 2014


On Mon, Nov 17, 2014 at 12:21 PM, Ben Finney <ben+python at benfinney.id.au> wrote:
>> 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”.

Then that ought surely to be an informational? It's not saying there's
a problem in your code, it's pointing out that it can't check.

Either that, or warnings from PyLint are all low-grade and should be ignored.

ChrisA



More information about the Python-list mailing list