lint for Python?

Pat Pat at junk.net
Sun Oct 5 09:53:08 EDT 2008


Miki wrote:
> 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.

Before posting my original question, I tried pychecker and it didn't 
catch that error.

> 
>> 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".

That's something I'll look into after I'm more proficient in Python. 
Currently, I'm learning my way around Python.

Thank you.

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



More information about the Python-list mailing list