Do you know of a much simpler way of writing a program that writes a program?

Stefan Behnel stefan_ml at behnel.de
Fri May 2 10:40:25 EDT 2008


mcse jung wrote:
> Here is asample program that writes a program and then executes it.  
> Do you knowof a much simpler way of writing a program that writes a program?

I'm not quite sure what you are trying to achieve here, but I bet there is a
simpler way to do it than by generating a script. You might want to look into
functions.

http://docs.python.org/tut/node6.html#SECTION006600000000000000000

Stefan



More information about the Python-list mailing list