Convert string to mathematical function
Felipe Almeida Lessa
felipe.lessa at gmail.com
Tue Aug 1 21:58:10 EDT 2006
Em Ter, 2006-08-01 às 18:45 -0700, jeremito escreveu:
> I am extending python with C++ and need some help. I would like to
> convert a string to a mathematical function and then make this a C++
> function.
I may be wrong, but I don't think you can create new C++ functions
on-the-fly. At least I had the impression that only VMs could do it
(e.g. System.Reflection on .NET/Mono world and, of course, Python).
> My one idea (although I don't
> know how to implement it, I'm still new at this) is to pass to C++ a
> pointer to a (Python) function. Will this work?
I think it will, but I can't tell you how =).
--
Felipe.
More information about the Python-list
mailing list