[IronPython] IP 2: Execute multiple expression in different scopes

Curt Hagenlocher curt at hagenlocher.org
Tue Aug 19 18:28:55 CEST 2008


There's an "Operations" property on the ScriptEngine that returns an
ObjectOperations object.

On Tue, Aug 19, 2008 at 9:26 AM, Christian Schmidt <
christian2.schmidt at gmx.de> wrote:

> Hi Dino,
>
> Is there a reason ObjectOperations.Call(scope.GetVariable("Process"),
>> args) doesn't work?
>>
>
> It seems that ObjectOperations does not have a static method Call. Where do
> I get an ObjectOperations instance from?
>
> I found another solution:
> Delegate process = scope.GetVariable<PythonFunction>("process").Target;
> process.DynamicInvoke(args);
>
> One problem I have with the approach is that I can only use up to 5
> arguments. For more arguments I get a TargetParameterCountException.
>
>
> Any ideas?
>
> Thanks,
>
> Christian
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20080819/51a664af/attachment.html>


More information about the Ironpython-users mailing list