How can I catch misnamed variables?

Ben Finney ben+python at benfinney.id.au
Fri Feb 10 16:26:01 EST 2012


John Gordon <gordon at panix.com> writes:

> Is there an automated way to catch errors like these?

Use a static code checker, such as ‘pyflakes’ (simple but limited) or
‘pylint’ (complex but highly configurable) to catch these and many other
problems in Python code.

-- 
 \          “It's a terrible paradox that most charities are driven by |
  `\     religious belief.… if you think altruism without Jesus is not |
_o__)          altruism, then you're a dick.” —Tim Minchin, 2010-11-28 |
Ben Finney



More information about the Python-list mailing list