In message <[EMAIL PROTECTED]>, Pat wrote:

> 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.  I don't want that error found at 3AM.
> 
> I've never used a language that didn't catch that type of error.

Because in Python, it's not necessarily an error. Every name you define in
Python is just a variable, and can have its value changed at any time: the
compiler can't tell that foo won't have a different value put into it
between the definition of the function and the actual call.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to