Issue warning if no "return" in function?

Paul McGuire ptmcg at austin.rr.com
Thu Sep 4 12:08:54 CEST 2008


On Sep 4, 5:05 am, Poster28 <usen... at anton.e4ward.com> wrote:
> What would you suggest to check python programs for non-syntax error.
> One example I could think of that one might forget to "return" a value from
> a function.
>
> How could I check for these and maybe other mistakes?

Check out PyLint (http://www.logilab.org/857) or PyChecker (http://
pychecker.sourceforge.net/).




More information about the Python-list mailing list