[IronPython] clr.CompileModules(…) “couldn’t find member CompileModules”

Lukáš Duběda loocas at duber.cz
Sat Feb 27 15:04:01 PST 2010


Hi everybody,

I have this following issue, if anyone could help, I'd much
appretiate it!

I have a class in C#:

public class MyHelper {
     public object exec( string script, params object[] arguments ) {
         // ....
     }
}

and I'm sending it to IronPython, where I want to call:

helper.exec( "someExternalFunction01()" )
helper.exec( "someExternalFunction02({0}, {1})", true, 15 )


However, unfortunately it throws an "syntax error":
By methods, which don't have "params object[]" there isn't an issue.
Does anybody know how to construct the "MyHelper" class so that
the syntax would be the same in IPy as in C#? I've found: 
http://blogs.msdn.com/srivatsn/archive/2008/09/09/passing-keyword-args-to-c-methods-from-ironpython.aspx 

but it's not exactly what I need (or I don't know how to "bend" it).

Thanks a lot in advance, cheers,

Lukáš Duběda
Director
[T] +420 602 444 164

duber studio(tm)
[M] info at duber.cz
[W] http://www.duber.cz

[A] R.A.Dvorského 601, Praha 10
[A] 10900, Czech Republic, Europe

Pablo Dalmazzo wrote:
> Hi there,
> 
> 
> Im getting the following error
> 
> 
> 
> Visual Studio 2008 Professional SP1 installed, asp.net ironpython website
> 
> |import clr                  #ok
> clr.AddReference('System')  #ok
> |
> 
> but
> 
> |clr.CompileModules(...)
> |
> 
> "couldn't find member CompileModules"
> 
> 
> 
> Anyone got this once?
> 
> ------------------------------------------------------------------------
> Windows Live Hotmail es más seguro con el control de suplantación de 
> identidad. Más info aquí 
> <http://www.descubrewindowslive.com/hotmail/anti-spam.asp>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


More information about the Users mailing list