Pychecker

Anthony Greene sysfault at zetafunc.net
Fri Jun 9 14:10:59 EDT 2006


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?

-- 
A wise man knows he knows nothing.




More information about the Python-list mailing list