On Nov 25, 12:12 pm, Rafe <[EMAIL PROTECTED]> wrote:
> is it really as simple as gathering strings of code?

Yes.

> Sort of like generating HTML or XML directly? Is there any other framework or
> pattern set that is worth looking in to?

Yes, the compiler module and the ast module in the standard library.
You may also
look at how templating languages that compile to Python code work (I
mean mako
or PTL/qpy). You may find interesting how the import hooks work too.

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to