|
From: Samuele P. <pe...@in...> - 2001-03-08 12:26:34
|
Hi.
[Jorge Tellez]
>
> Hi,
> I would like to execute a "compiled" Jython code passing parameters. For that
I used the __call and I pass the parameters like this:
>
> PyObject FooFunction = interp.get("function");
> FooFunction.__call__(new PyInteger(1) ,new PyInteger(2),new PyInteger(3), new
PyInteger(4));
>
> This works fine. But now I would like to pass 8 parameters, and in the
PyObject the maximum is 4,
> There is another way to do that?
This should do the job:
Foo.Function.__call__(new PyObject[] {Py.newInteger(1), ...as many PyObjects as
needed }, Py.NoKeywords);
regards.
|