Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

pyflakes finds these. It has virtually 0% false positives and runs extremely quickly.

Run it on save or in a git commit hook.

(I agree that they should be a syntax error though)



Would be very difficult (or impossible) to make this a syntax error since

exec()

Modifies the global scope




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: