I do most of my development in Java and C ++, but lately I had to write different scripts and pick Python. I run python from the command line on scripts; not interactively. I wonder if
I like a lot of things about the language, but one thing that continues to slow down my performance is that I don't get warnings in advance if I use a variable that is not yet defined.
For example, somewhere in the code, I forget the variable prefix with its declaring module, or I make a small typo, and the first time I find out about it when the program crashes.
Is there a way to get the python interpreter to give preliminary warnings if something can be funny when I access a variable that was not available or set somewhere else in the program? I understand that this is somewhat contrary to the philosophy of the language, but I cannot be the only one who makes these stupid mistakes and cannot catch them early.
source
share