3 ms·
FWIW, I have found pyflakes really useful in fixing the most common bugs I encounter in a python program (using a wrong identifier) but I haven't noticed anythi
by riffraff 15y ago
FWIW, I have found pyflakes really useful in fixing the most common bugs I encounter in a python program (using a wrong identifier) but I haven't noticed anything deep about it (such as detecting _obvious_ AttributeErrors), does pychecker work better in this sense?
- pnathan 15y agoNo, it's limited in scope.
- spenrose 15y agopyflakes compiles your code, pychecker imports it, which is not idempotent -- all top-level statements are executed. pyflakes will throw some false positives, but not many. pychecker will fill your terminal with opinions. pyflakes is IMHO a much superior tool. Plugging it into emacs via flymake is a no-brainer; I believe there are solutions for vi as well: http://www.emacswiki.org/emacs/?action=browse;oldid=PythonMode;id=PythonProgrammingInEmacs#toc9 http://www.emacswiki.org/emacs/?action=browse;oldid=PythonMo...
- riffraff 15y agoyes, I use pyflakes within vim via syntastic https://github.com/scrooloose/syntastic https://github.com/scrooloose/syntastic