On 7 May 2005 15:05:20 -0700, "LDD" <[EMAIL PROTECTED]> wrote:

>Hi everyone,
>
>I am new to python and was very enthustic about its possibilities when
>I discover that python is really what it is : just a scripting
>language.
Not "just." 
>
>What disappoints me is that pyton will happily accept and execute this
>code :
>
>if ( aConditionThatIsFalse ):
>     AFunctionThatIsntDefined()
>
>print "Hello world"
>
>The fact that python doesn't check if the symbol
>AFunctionThatIsntDefined is defined, is really bad when you develop big
>pieces of code. You will never be sure that your code is free of this
>kind of dummy errors and testing every possible execution paths is
>nightmarish !
If you aren't going to test your functions, how will you know they don't
have dummy errors??
>
>Is there a way to force Python to check the definition of symbol ?
>
If _are_ going to test your functions, how long will it take to discover that
a function doesn't exist?

IOW, do you mean that if you know a function is defined, you will assume
it is free of dummy errors? Such faith ;-)

Regards,
Bengt Richter
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to