From: Kenworthy, Edward <Edward.K<enworthy@ma...> - 2002-07-17 10:16:16
OK I exec my script:
Get the method I need:
method = _interp.get("handleElement");
And then cache it, so in future I can just get the method and call that:
PyObject pyPanel = method.__call__(Py.java2py(element));
Is there anything I need to be careful of ?
Do I need to keep the interpreter (presumably if I do then method will be
linked to interpreter so the interpreter won't be gc's anyway). Anything
else I need to be concerned about ?
Also, am I right in thinking that execFile has compiled the file so that
calling method.__call__ is calling compiled code ?