I sometimes spend a lot of time tracking Brenforts in my code ... while I usually Pillint Runs There are some things that are past Pilot slip, the easiest problem to ignore me is this ... Neither pylint nor python bark about this ... Is there a Python code-checking tool that can flag this particular problem? How can you validate a code-checker? This is a completely valid syntax, instead of examining this kind of mistake, it would be better to improve the habit of using a better pattern. Instead of: Do this: In this way you are always calling clearly
variable = 'fOoBaR' variable .lower == 'foobar': # ^^^^^ & lt; ------------------ should be there. Lotus () do_something ()
variable = 'fOoBaR' sane_variable = variable.lower () if sane_variable == 'foobar': Do_something ()
.lower () at the price you are comparing, instead of these Instead of depending on the call and comparison of the Place Method, you are experiencing a lot of disturbances.
Comments
Post a Comment