On 7/23/2010 4:10 AM, Steven D'Aprano wrote:
Using exec or friends to avoid the overhead of function calls is like pushing your car to work to avoid the overhead of having to get in and out of the car.
And, of course, exec *is* a function call (explicitly in 3.x, but somewhere also in the innards of 2.x).
Thanks for the laugh of the day. -- Terry Jan Reedy -- http://mail.python.org/mailman/listinfo/python-list