> [1] except using compile to build a code object with the function's > body, then instanciate a function object using this code, but I'm not > sure whether it will buy you much more performance-wise. I'd personnaly > prefer this because I find it more explicit and readable, but YMMV. >
How is compiling more readable than exec - doesn't it require an extra step ? You generate code dynamically anyway. Eli -- http://mail.python.org/mailman/listinfo/python-list