Newbie : checking semantics
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. 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 ! Is there a way to force Python to check the definition of symbol ? LDD -- http://mail.python.org/mailman/listinfo/python-list
Re: Newbie : checking semantics
Be reassured, I'm not working in any business related to pacemakers, avionics or railway signalling equipement ... :) I'm just a guy who is learning Python because to me it seems to be the best alternative to Perl, and trying to know what it is fit for. -- http://mail.python.org/mailman/listinfo/python-list
Re: Newbie : checking semantics
>To win this point, you need to produce evidence that doesn't exist. I was not trying to win any point when I put my naive question on this forum. I'm just learning Python and trying to know what it is best made for. So far I've learnt that Python is lazy about tyche-checking, it is dynamic by nature and that there are areas which those qualities are well fit for. Still, I'm happy to learn that pychecker exists and helps you find spelling mistakes that otherwise you would have found at execution time -- http://mail.python.org/mailman/listinfo/python-list