Pychecker

Rick Zantow rzantow at gmail.com
Fri Jun 9 14:24:44 EDT 2006


Anthony Greene <sysfault at zetafunc.net> wrote in
news:pan.2006.06.09.18.10.58.746134 at zetafunc.net: 

> Howdy, I had the impression that pychecker caught and reported such
> dynamic syntactical errors.
> 
> #!/usr/bin/env python
> 
> 
> def add(i):
>     i += 10
>     
> status = 3
> 
> if 1 == 1:
>     statuss = 15
> 
> add(status)
> 
> =======================
> 
> exalted sysfault$ pychecker foo.py 
> Processing foo...
> 
> Warnings...
> 
> None
> 
> =======================
> 
> Hence the mispelling of status (statuss), which was done purposely to
> test if pychecker will acknowledge and report the error. Do i need to
> enable some type of pychecker option in order for it to pick up the
> error? I know that it is syntactically correct in python, however it's
> likely that 'status' is meant. Am i wishing that pychecker will
> replace a statically typed language mechanism?
> 

I think you're asking a lot from pychecker.

kop = 1
koi = 2

if True:
    	koo = 3

What would you like pychecker to report?


-- 
rzed




More information about the Python-list mailing list