Why does pylint assume that module level variables are constants?

In the response to stopping Pylint message C0103 , @ChristopheD specifically mentioned that "pylint interprets all module level variables as" constants ".

I like Pylint, and suppose the authors have reasons to improve the quality of the code for the default behavior. So, can someone tell me: why does pylint interpret all module level variables as "constants"?

Is it possible that this is a pylint way to highlight implicit global variables that are considered bad ?

+5
source share

All Articles