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.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to