dynamic typing question

Skip Montanaro skip at pobox.com
Fri Dec 26 15:38:25 EST 2003


    HJL> One static typing advantage I've run into:

    HJL> When you change the name of a variable in a class, and re-compile
    HJL> the program, the compiler shows you ALL places where compilation
    HJL> fails.  These could be hundreds of places in dozens of files.

    ...

    HJL> I am sure Python people have come up with strategies to deal with
    HJL> this problem. That's what I'd like to hear. (Unit test is one

As others have pointed out, pychecker is good at catching these sorts of
problems.

    HJL> I would like to hear more real-life experience rather than academic
    HJL> conjectures.

I've used pychecker in real-life to detect these sorts of problems, in other
peoples' code no less, even though I have a (non-academic) position at
Northwestern University. ;-)

Skip





More information about the Python-list mailing list