On Tue, Oct 03, 2006 at 09:19:19AM -0400, Marcus L. wrote:
Looking at the qa_feval stuff, how does this conflict with Pythons
builtin “eval” function, which is used to
do a runtime evaluation of an expression?
It doesn’t conflict at all. It’s just a class with a method called
I’d like the end-user to be able to pass a simple codelet in on the
command line, and have it evaluated.
Shouldn’t be a problem. You’ll want to wrap some something around the
user provided codelet to turn it into a function using either the
lambda syntax (if it’s a single expression) or adding the def
wrapper. Then eval that. At that point foo_9876567 is in the namespace
and can be called.
If you need more than this hand-waving, let me know