An idiom for code generation with exec

Dan Yamins dyamins at
Fri Jun 20 19:06:45 CEST 2008

On Fri, Jun 20, 2008 at 3:17 AM, Bruno Desthuilliers
<bruno.42.desthuilliers at websiteburo.invalid> wrote:

Just to make things clear: you do know that you can dynamically build
> functions without exec, do you ?

Actually, I don't know how to do this, but would like to.   Can you point me
to a place where I can read more about how  (and to a discussion of the
flaws of the exec-based approach)?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list