questions about of writing python scripts

Kragen Sitaker kragen at pobox.com
Sat Dec 1 06:14:53 EST 2001


edwardt at trillium.com (ed) writes:
> Is there a way to force the python interpretter to kind of doing
> "compilation" of the python scripts, so that I do not need to
> rerunning the progrma a lot of times just to find out they are errors
> like varibles not defined; functions name not found, variables not
> found?

Compiling Python can't find these things because the semantics of
Python allow them to be added after the program starts but before it
runs the erroneous lines.

To find these things in Python, you need a test suite.  You probably
need a test suite anyway to find more serious errors...




More information about the Python-list mailing list