lint for Python?

Miki miki.tebeka at gmail.com
Sun Oct 5 05:35:46 EDT 2008


Hello,

> In module one, I have a function:
>
> def foo( host, userid, password ):
>      pass
>
> In module two, I call that function:
>
> foo( userid, password)
>
> lint doesn't find that error and it won't be caught until it's called
> while the program is running.
pychecker does find these kind of errors.

> I've never used a language that didn't catch that type of error.  I'm
> quite surprised that Python is being used by a number of major
> companies.  How you catch these types of errors?
By running a large test suite, I highly recommend "nose".

HTH,
--
Miki <miki.tebeka at gmail.com>
http://pythonwise.blogspot.com



More information about the Python-list mailing list