embedding strategies; C++ server
Randy Heiland
heiland at ncsa.uiuc.edu
Wed Jul 7 17:24:12 EDT 1999
I have a scenario where I have a "black box" (C++) server that executes
"arbitrary" Python commands (strings) handed to it. Consider the
following hypothetical situation:
client: cmd = "init"
server: Py_Initialize();
client: cmd = "from geometry2D import *"
server: PyRun_SimpleString(cmd);
client: cmd = "square = Quad(0,0, 1,0, 1,1, 0,1)"
server: PyRun_SimpleString(cmd);
client: cmd = "square.GetPoints()"
server: <detects that "GetPoints" is being invoked and
obtains/processes
the actual points in C/C++>
Which embedding strategy lets me do this last step in the server? (any?)
thanks,
--Randy
More information about the Python-list
mailing list