"Borse, Ganesh" <[EMAIL PROTECTED]> wrote:
> 2) my this code got compiled but when running, I got an error from
> Py_CompileString, as below. Why is it so?
> File "", line 1
> if ( (size < 1000) & (vol < (0.001 * ADV)) & (prod=="Stock")):
> print "OK" ^
> SyntaxError: invalid syntax
>
Hi,
May you please help in using Py_CompileString & PyEval_EvalCode to
parse+compile an expression at startup & evaluate that multiple times at
runtime.
I want to use this in C++ program as below.
Here, the expression contains the variables like size, vol, ADV, etc. The
values of these variable