Can python be used to debug other languages?

Phil Schmidt pschmidt at omnimn.com
Tue Oct 1 11:00:17 EDT 2002


You can certainly use Python to create a test environment. This is not
*quite* the same as debugging, but it is a useful exercise
nonetheless.

For example, you write a C program to generate "random" numbers, and
you want to test your algorithm. You can write a Python script to call
the program, accumulate the output, and analyze the results.

Of course, you could write more C code to do the same set of tests,
but I would argue that developing a tester in Python would be far more
(time) efficient than doing it in C.



More information about the Python-list mailing list