I do most of my development in Java and C++ but recently had to write various scripts and picked up Python. I run python from the command line on scripts; not in interactive mode. I'm wondering if
I like a lot of things about the language, but one thing that keeps reducing my productivity is the fact that I get no advance warning if I am using a variable that is not yet defined.
For example, somewhere in the code I forget to prefix a variable with its declaring module, or I make a little typo, and the first time I learn about it is when the program crashes.
Is there a way to get the python interpreter to throw advance warnings if something might be funky when I access a variable that hasn't been accessed or set somewhere else in the program? I realize this is somewhat against the philosophy of the language, but I can't be the only one who makes these silly errors and has no way of catching them early.