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

George Sakkis george.sakkis at gmail.com
Fri May 2 15:46:56 EDT 2008


On May 2, 10:40 am, Stefan Behnel <stefan... at behnel.de> wrote:
> 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

Seriously, this looks like a DailyWTF entry.

George



More information about the Python-list mailing list