Laszlo Nagy wrote:
> 100 functions/second > installed to global namespace doesn't sound well. What on earth are you doing needing to use exec to create hundreds of functions?????? Have you considered not using exec at all, and using a good old-fashioned factory function and closures? def factory(x): def inner(param): return param + x return inner plusone = factory(1) plustwo = factory(2) I'm betting that this will be much faster than exec, and much more readable. -- Steven -- http://mail.python.org/mailman/listinfo/python-list