4 ms·
pylint can help with misspelled variables and type errors. I started using it recently and love it. I still love my C++ compiler though and would not trade it f
by 16s 14y ago
pylint can help with misspelled variables and type errors. I started using it recently and love it. I still love my C++ compiler though and would not trade it for anything else.
- riffraff 14y agopyflakes also detects typos easily, and it's quite useful. In languages that don't catch anything you can usually still use tools for static verification. As another example, Java may let you get NullPointerException, but FindBugs detects a lot of those.
- afrozenator 14y agoWow thanks, I didn't know pyflakes. I knew pylint, but will make it more of a point to run it. I only occasionally need to code in Python, but when I have to, it is legacy code that I modify.
- riffraff 14y agoglad to be helpful. Depending on your editor of choice, you can get integrated pyflakes/pyling/flake8, e.g. I use vim and the syntastic plugin which is great. This way, you get a bit of on the fly static checking without needing to remember command line tools/using vcs hooks, which is much more productive.
- afrozenator 14y agoWill keep this in mind the next time around! Thanks again.