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

Erik Max Francis max at alcyone.com
Fri May 2 14:32:01 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?

It looks like you have a program which is more printed text than program 
logic.  In which case, the usual solution is to use a templating system, 
where most of the text is unmodified and you only set out the specific 
areas where you want to insert logic.

EmPy is one:

	http://www.alcyone.com/software/empy/

-- 
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
  San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis



More information about the Python-list mailing list